~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to agent/mibgroup/mibII/at.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
#if HAVE_WINSOCK_H
91
91
#include <winsock.h>
92
92
#endif
93
 
#if HAVE_DMALLOC_H
94
 
#include <dmalloc.h>
95
 
#endif
96
93
 
97
94
#ifdef hpux11
98
95
#include <sys/mib.h>
106
103
#include "at.h"
107
104
#include "interfaces.h"
108
105
 
 
106
#include <net-snmp/data_access/interface.h>
 
107
 
109
108
#if defined(HAVE_SYS_SYSCTL_H) && !defined(CAN_USE_SYSCTL)
110
109
# if defined(RTF_LLINFO) && !defined(irix6)
111
110
#  define CAN_USE_SYSCTL 1
630
629
        if (tmp_flags == 0) {
631
630
            continue;
632
631
        }
 
632
        ifname[sizeof(ifname)-1] = 0; /* make sure name is null terminated */
633
633
        at[i].at_flags = tmp_flags;
634
634
        at[i].at_enaddr[0] = ze;
635
635
        at[i].at_enaddr[1] = zf;
640
640
        tmp_a = ((u_long) za << 24) |
641
641
            ((u_long) zb << 16) | ((u_long) zc << 8) | ((u_long) zd);
642
642
        at[i].at_iaddr.s_addr = htonl(tmp_a);
643
 
        at[i].if_index = Interface_Index_By_Name(ifname, strlen(ifname));
 
643
        at[i].if_index = netsnmp_access_interface_index_find(ifname);
644
644
        i++;
645
645
    }
646
646
    arptab_size = i;