Diff for /embedaddon/quagga/ripd/rip_snmp.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 17:26:12 version 1.1.1.2, 2013/07/21 23:54:40
Line 22 Line 22
 #include <zebra.h>  #include <zebra.h>
   
 #ifdef HAVE_SNMP  #ifdef HAVE_SNMP
 #ifdef HAVE_NETSNMP  
 #include <net-snmp/net-snmp-config.h>  #include <net-snmp/net-snmp-config.h>
 #include <net-snmp/net-snmp-includes.h>  #include <net-snmp/net-snmp-includes.h>
 #else  
 #include <asn1.h>  
 #include <snmp.h>  
 #include <snmp_impl.h>  
 #endif  
   
 #include "if.h"  #include "if.h"
 #include "log.h"  #include "log.h"
Line 351  rip2IfStatEntry (struct variable *v, oid name[], size_ Line 345  rip2IfStatEntry (struct variable *v, oid name[], size_
   static struct in_addr addr;    static struct in_addr addr;
   static long valid = SNMP_VALID;    static long valid = SNMP_VALID;
   
     if (smux_header_table(v, name, length, exact, var_len, write_method)
         == MATCH_FAILED)
       return NULL;
   
   memset (&addr, 0, sizeof (struct in_addr));    memset (&addr, 0, sizeof (struct in_addr));
       
   /* Lookup interface. */    /* Lookup interface. */
Line 454  rip2IfConfAddress (struct variable *v, oid name[], siz Line 452  rip2IfConfAddress (struct variable *v, oid name[], siz
   struct interface *ifp;    struct interface *ifp;
   struct rip_interface *ri;    struct rip_interface *ri;
   
     if (smux_header_table(v, name, length, exact, val_len, write_method)
         == MATCH_FAILED)
       return NULL;
   
   memset (&addr, 0, sizeof (struct in_addr));    memset (&addr, 0, sizeof (struct in_addr));
       
   /* Lookup interface. */    /* Lookup interface. */
Line 523  rip2PeerTable (struct variable *v, oid name[], size_t  Line 525  rip2PeerTable (struct variable *v, oid name[], size_t 
   /* static time_t uptime; */    /* static time_t uptime; */
   
   struct rip_peer *peer;    struct rip_peer *peer;
   
     if (smux_header_table(v, name, length, exact, val_len, write_method)
         == MATCH_FAILED)
       return NULL;
   
   memset (&addr, 0, sizeof (struct in_addr));    memset (&addr, 0, sizeof (struct in_addr));
       

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>