Diff for /embedaddon/quagga/zebra/if_sysctl.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 17:26:11 version 1.1.1.2, 2016/11/02 10:09:10
Line 29 Line 29
 #include "memory.h"  #include "memory.h"
 #include "ioctl.h"  #include "ioctl.h"
 #include "log.h"  #include "log.h"
   #include "interface.h"
   #include "vrf.h"
   
 #include "zebra/rt.h"  #include "zebra/rt.h"
 #include "zebra/kernel_socket.h"  #include "zebra/kernel_socket.h"
   #include "zebra/rib.h"
   
 void  void
 ifstat_update_sysctl (void)  ifstat_update_sysctl (void)
Line 89  ifstat_update_sysctl (void) Line 92  ifstat_update_sysctl (void)
   
 /* Interface listing up function using sysctl(). */  /* Interface listing up function using sysctl(). */
 void  void
interface_list ()interface_list (struct zebra_vrf *zvrf)
 {  {
   caddr_t ref, buf, end;    caddr_t ref, buf, end;
   size_t bufsiz;    size_t bufsiz;
Line 105  interface_list () Line 108  interface_list ()
     NET_RT_IFLIST,      NET_RT_IFLIST,
     0       0 
   };    };
   
     if (zvrf->vrf_id != VRF_DEFAULT)
       {
         zlog_warn ("interface_list: ignore VRF %u", zvrf->vrf_id);
         return;
       }
   
   /* Query buffer size. */    /* Query buffer size. */
   if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0)     if (sysctl (mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) 

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


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