Print this page
3245 in.ndp daemon should not be session leader
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>


  54 
  55 #include <netinet/in_systm.h>
  56 #include <netinet/in.h>
  57 #include <netinet/ip.h>
  58 #include <netinet/ip_icmp.h>
  59 #include <netinet/if_ether.h>
  60 #include <netinet/ip6.h>
  61 #include <netinet/icmp6.h>
  62 #include <net/route.h>
  63 #include <libipadm.h>
  64 #include <ipadm_ndpd.h>
  65 
  66 #include "tables.h"
  67 
  68 #ifdef  __cplusplus
  69 extern "C" {
  70 #endif
  71 
  72 #define CURHOP_UNSPECIFIED 0
  73 #define PATH_NDPD_CONF  "/etc/inet/ndpd.conf"
  74 #define PATH_PID        "/var/run/in.ndpd.pid"
  75 
  76 extern int debug, no_loopback;
  77 
  78 extern struct in6_addr all_nodes_mcast;
  79 extern struct in6_addr all_routers_mcast;
  80 
  81 extern int                      rtsock;
  82 extern struct   rt_msghdr       *rt_msg;
  83 extern struct   sockaddr_in6    *rta_gateway;
  84 extern struct   sockaddr_dl     *rta_ifp;
  85 
  86 /* Debug flags */
  87 #define D_ALL           0xffff
  88 #define D_DEFAULTS      0x0001          /* Default values in config file */
  89 #define D_CONFIG        0x0002          /* Config file */
  90 #define D_PHYINT        0x0004          /* phyint table */
  91 #define D_PREFIX        0x0008          /* prefix table */
  92 #define D_ROUTER        0x0010          /* router table */
  93 #define D_STATE         0x0020          /* RS/RA state machine */
  94 #define D_IFSCAN        0x0040          /* Scan of kernel interfaces */




  54 
  55 #include <netinet/in_systm.h>
  56 #include <netinet/in.h>
  57 #include <netinet/ip.h>
  58 #include <netinet/ip_icmp.h>
  59 #include <netinet/if_ether.h>
  60 #include <netinet/ip6.h>
  61 #include <netinet/icmp6.h>
  62 #include <net/route.h>
  63 #include <libipadm.h>
  64 #include <ipadm_ndpd.h>
  65 
  66 #include "tables.h"
  67 
  68 #ifdef  __cplusplus
  69 extern "C" {
  70 #endif
  71 
  72 #define CURHOP_UNSPECIFIED 0
  73 #define PATH_NDPD_CONF  "/etc/inet/ndpd.conf"

  74 
  75 extern int debug, no_loopback;
  76 
  77 extern struct in6_addr all_nodes_mcast;
  78 extern struct in6_addr all_routers_mcast;
  79 
  80 extern int                      rtsock;
  81 extern struct   rt_msghdr       *rt_msg;
  82 extern struct   sockaddr_in6    *rta_gateway;
  83 extern struct   sockaddr_dl     *rta_ifp;
  84 
  85 /* Debug flags */
  86 #define D_ALL           0xffff
  87 #define D_DEFAULTS      0x0001          /* Default values in config file */
  88 #define D_CONFIG        0x0002          /* Config file */
  89 #define D_PHYINT        0x0004          /* phyint table */
  90 #define D_PREFIX        0x0008          /* prefix table */
  91 #define D_ROUTER        0x0010          /* router table */
  92 #define D_STATE         0x0020          /* RS/RA state machine */
  93 #define D_IFSCAN        0x0040          /* Scan of kernel interfaces */