diff options
author | Hideki Yamane <henrich@debian.org> | 2014-03-30 19:38:48 +0900 |
---|---|---|
committer | Hideki Yamane <henrich@debian.org> | 2014-03-30 19:38:48 +0900 |
commit | 7769a9595c3da9a35f31b42451b1f6c3ed4004fa (patch) | |
tree | 009bf8fd68af6bb1129e07dd8c1ed205010d81f8 /agent/mibgroup/mibII/at.h | |
parent | 2e7891b0311204e0ecd5dc4a4334df01f3a6a1b4 (diff) | |
download | pkg-net-snmp-7769a9595c3da9a35f31b42451b1f6c3ed4004fa.tar.gz |
Imported Upstream version 5.7.2~dfsg
Diffstat (limited to 'agent/mibgroup/mibII/at.h')
-rw-r--r-- | agent/mibgroup/mibII/at.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/agent/mibgroup/mibII/at.h b/agent/mibgroup/mibII/at.h new file mode 100644 index 0000000..5bee2eb --- /dev/null +++ b/agent/mibgroup/mibII/at.h @@ -0,0 +1,49 @@ +/* + * Template MIB group interface - at.h + * + */ + +#ifndef _MIBGROUP_AT_H +#define _MIBGROUP_AT_H + +config_arch_require(solaris2, kernel_sunos5) + + extern void init_at(void); + extern FindVarMethod var_atEntry; + + +#define ATIFINDEX 0 +#define ATPHYSADDRESS 1 +#define ATNETADDRESS 2 + +#define IPMEDIAIFINDEX 0 +#define IPMEDIAPHYSADDRESS 1 +#define IPMEDIANETADDRESS 2 +#define IPMEDIATYPE 3 + +/* + * in case its missing: + */ +#ifndef ATF_PERM +# define ATF_PERM 0x04 +#endif /* ATF_PERM */ +#ifndef ATF_COM +# define ATF_COM 0x02 +#endif /* ATF_COM */ + +/* InfiniBand uses HW addr > 6 */ +#define MAX_MAC_ADDR_LEN 32 + +#if defined(linux) || defined(irix6) +/* + * arp struct to pass flags, hw-addr and ip-addr in bsd manner: + */ + struct arptab { + int at_flags; + char at_enaddr[MAX_MAC_ADDR_LEN]; + int at_enaddr_len; + struct in_addr at_iaddr; + int if_index; + }; +#endif +#endif /* _MIBGROUP_AT_H */ |