1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 42 unchanged lines hidden (view full) ---
51#include <arpa/inet.h>
52
53#include "asn1.h"
54#include "snmp.h"
55#include "snmpmod.h"
56#include "snmp_mibII.h"
57#include "mibII_tree.h"
58
59/*
60 * Interface list and flags.
61 */
62TAILQ_HEAD(mibif_list, mibif);
63enum {
64 MIBIF_FOUND = 0x0001,
65 MIBIF_HIGHSPEED = 0x0002,
66 MIBIF_VERYHIGHSPEED = 0x0004,
67};
68
69/*
70 * Private mibif data - hang off from the mibif.
71 */
72struct mibif_private {
73 uint64_t hc_inoctets;
74 uint64_t hc_outoctets;
75 uint64_t hc_omcasts;
76 uint64_t hc_opackets;
77 uint64_t hc_imcasts;
78 uint64_t hc_ipackets;
79};
80#define MIBIF_PRIV(IFP) ((struct mibif_private *)((IFP)->private))
81
82/*
83 * Interface addresses.
84 */
85TAILQ_HEAD(mibifa_list, mibifa);
86enum {
87 MIBIFA_FOUND = 0x0001,
88 MIBIFA_DESTROYED = 0x0002,
89};
90
--- 103 unchanged lines hidden (view full) ---
194extern int mib_iflist_bad;
195
196/* last time refreshed */
197extern uint64_t mibarpticks;
198
199/* info on system clocks */
200extern struct clockinfo clockinfo;
201
202/* baud rate of fastest interface */
203extern uint64_t mibif_maxspeed;
204
205/* user-forced update interval */
206extern u_int mibif_force_hc_update_interval;
207
208/* current update interval */
209extern u_int mibif_hc_update_interval;
210
211/* re-compute update interval */
212void mibif_reset_hc_timer(void);
213
214/* get interfaces and interface addresses. */
215void mib_fetch_interfaces(void);
216
217/* check whether this interface(type) is dynamic */
218int mib_if_is_dyn(const char *name);
219
220/* destroy an interface address */
221int mib_destroy_ifa(struct mibifa *);
--- 42 unchanged lines hidden ---
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 42 unchanged lines hidden (view full) ---
51#include <arpa/inet.h>
52
53#include "asn1.h"
54#include "snmp.h"
55#include "snmpmod.h"
56#include "snmp_mibII.h"
57#include "mibII_tree.h"
58
59/*
60 * Interface list and flags.
61 */
62TAILQ_HEAD(mibif_list, mibif);
63enum {
64 MIBIF_FOUND = 0x0001,
65 MIBIF_HIGHSPEED = 0x0002,
66 MIBIF_VERYHIGHSPEED = 0x0004,
67};
68
69/*
70 * Private mibif data - hang off from the mibif.
71 */
72struct mibif_private {
73 uint64_t hc_inoctets;
74 uint64_t hc_outoctets;
75 uint64_t hc_omcasts;
76 uint64_t hc_opackets;
77 uint64_t hc_imcasts;
78 uint64_t hc_ipackets;
79};
80#define MIBIF_PRIV(IFP) ((struct mibif_private *)((IFP)->private))
81
82/*
83 * Interface addresses.
84 */
85TAILQ_HEAD(mibifa_list, mibifa);
86enum {
87 MIBIFA_FOUND = 0x0001,
88 MIBIFA_DESTROYED = 0x0002,
89};
90
--- 103 unchanged lines hidden (view full) ---
194extern int mib_iflist_bad;
195
196/* last time refreshed */
197extern uint64_t mibarpticks;
198
199/* info on system clocks */
200extern struct clockinfo clockinfo;
201
202/* baud rate of fastest interface */
203extern uint64_t mibif_maxspeed;
204
205/* user-forced update interval */
206extern u_int mibif_force_hc_update_interval;
207
208/* current update interval */
209extern u_int mibif_hc_update_interval;
210
211/* re-compute update interval */
212void mibif_reset_hc_timer(void);
213
214/* get interfaces and interface addresses. */
215void mib_fetch_interfaces(void);
216
217/* check whether this interface(type) is dynamic */
218int mib_if_is_dyn(const char *name);
219
220/* destroy an interface address */
221int mib_destroy_ifa(struct mibifa *);
--- 42 unchanged lines hidden ---