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

« back to all changes in this revision

Viewing changes to agent/mibgroup/if-mib/data_access/interface.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-12-08 14:59:50 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071208145950-u1tykhpw56nyzqik
Tags: 5.4.1~dfsg-4ubuntu1
* Merge from debian unstable.
* Remaining Ubuntu changes:
  - Remove stop links from rc0 and rc6
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - Symlink common files between the packages, CDBS ought to handle that
    for us automatically.
* The latest Debian changes has dropped history from the changelog. Slot in
  the Ubuntu changes as best I can. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Interface MIB architecture support
3
3
 *
4
 
 * $Id: interface.c,v 1.4.2.1 2006/01/25 16:26:38 dts12 Exp $
 
4
 * $Id: interface.c 15768 2007-01-22 16:18:29Z rstory $
5
5
 */
6
6
#include <net-snmp/net-snmp-config.h>
7
7
#include <net-snmp/net-snmp-includes.h>
114
114
    if (NULL == container1)
115
115
        return NULL;
116
116
 
 
117
    container1->container_name = strdup("interface container");
117
118
    if (flags & NETSNMP_ACCESS_INTERFACE_INIT_ADDL_IDX_BY_NAME) {
118
119
        netsnmp_container *container2 =
119
120
            netsnmp_container_find("access_interface_by_name:access_interface:table_container");
120
121
        if (NULL == container2)
121
122
            return NULL;
122
123
 
 
124
        container2->container_name = strdup("interface name container");
123
125
        container2->compare = _access_interface_entry_compare_name;
124
126
        
125
127
        netsnmp_container_add_index(container1, container2);
604
606
    lhs->mtu = rhs->mtu;
605
607
    lhs->lastchange = rhs->lastchange;
606
608
    lhs->discontinuity = rhs->discontinuity;
607
 
    lhs->reasm_max = rhs->reasm_max;
 
609
    lhs->reasm_max_v4 = rhs->reasm_max_v4;
 
610
    lhs->reasm_max_v6 = rhs->reasm_max_v6;
608
611
    lhs->admin_status = rhs->admin_status;
609
612
    lhs->oper_status = rhs->oper_status;
610
613
    lhs->promiscuous = rhs->promiscuous;