Deleted Added
sdiff udiff text old ( 150920 ) new ( 155602 )
full compact
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};
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/*
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
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 ---