~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to include/net-snmp/data_access/arp.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * arp data access header
3
3
 *
4
 
 * $Id: arp.h 15220 2006-09-15 00:48:50Z tanders $
 
4
 * $Id: arp.h 17892 2009-12-09 14:37:16Z jsafranek $
5
5
 */
6
6
#ifndef NETSNMP_ACCESS_ARP_H
7
7
#define NETSNMP_ACCESS_ARP_H
17
17
#   define NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE 4
18
18
#endif
19
19
 
20
 
/** MAC address is 6 - do we want to support anything larger? */
21
 
#define NETSNMP_ACCESS_ARP_PHYSADDR_BUF_SIZE 6
 
20
/** MAC address is 6, InfiniBand uses more, 32 must be enough for near future.*/
 
21
#define NETSNMP_ACCESS_ARP_PHYSADDR_BUF_SIZE 32
22
22
 
23
23
/*************************************************************
24
24
 * constants for enums for the MIB node
78
78
   u_char    arp_physaddress[NETSNMP_ACCESS_ARP_PHYSADDR_BUF_SIZE];
79
79
   u_char    arp_ipaddress[NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE];
80
80
 
81
 
   u_char    arp_physaddress_len;/* phys address len, 6 */
 
81
   u_char    arp_physaddress_len;/* phys address len, max 32 */
82
82
   u_char    arp_ipaddress_len;  /* ip address len, 4 | 16 */
83
83
   u_char    arp_type;           /* inetNetToMediaType 1-5 */
84
84
   u_char    arp_state;          /* inetNetToMediaState 1-7 */