Deleted Added
full compact
mibII.h (150920) mibII.h (155602)
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
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/*
61 * Interface list and flags.
62 */
63TAILQ_HEAD(mibif_list, mibif);
64enum {
65 MIBIF_FOUND = 0x0001,
66 MIBIF_HIGHSPEED = 0x0002,
67 MIBIF_VERYHIGHSPEED = 0x0004,
68};
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};
69#define hc_inoctets mib.ifmd_data.ifi_ibytes
70#define hc_outoctets mib.ifmd_data.ifi_obytes
71#define hc_omcasts mib.ifmd_data.ifi_omcasts
72#define hc_opackets mib.ifmd_data.ifi_opackets
73#define hc_imcasts mib.ifmd_data.ifi_imcasts
74#define hc_ipackets mib.ifmd_data.ifi_ipackets
75
76/*
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/*
77 * Interface addresses.
78 */
79TAILQ_HEAD(mibifa_list, mibifa);
80enum {
81 MIBIFA_FOUND = 0x0001,
82 MIBIFA_DESTROYED = 0x0002,
83};
84

--- 103 unchanged lines hidden (view full) ---

188extern int mib_iflist_bad;
189
190/* last time refreshed */
191extern uint64_t mibarpticks;
192
193/* info on system clocks */
194extern struct clockinfo clockinfo;
195
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
196/* get interfaces and interface addresses. */
197void mib_fetch_interfaces(void);
198
199/* check whether this interface(type) is dynamic */
200int mib_if_is_dyn(const char *name);
201
202/* destroy an interface address */
203int mib_destroy_ifa(struct mibifa *);

--- 42 unchanged lines hidden ---
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 ---