From fcea43ad6fb5b65897be852e55052a93eb9c7396 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 22 Mar 2007 16:05:30 -0700 Subject: [PATCH] Initialize packet socket --- main.c | 3 ++- packet.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 4395976..c89455b 100644 --- a/main.c +++ b/main.c @@ -26,6 +26,7 @@ #include "bridge_ctl.h" #include "ctl_socket_server.h" #include "netif_utils.h" +#include "packet.h" #include "log.h" #include @@ -66,7 +67,7 @@ int main(int argc, char *argv[]) TST(init_epoll() == 0, -1); TST(ctl_socket_init() == 0, -1); - + TST(packet_sock_init() == 0, -1); TST(netsock_init() == 0, -1); TST(init_bridge_ops() == 0, -1); if (become_daemon) { diff --git a/packet.h b/packet.h index c1a7879..0ae17b9 100644 --- a/packet.h +++ b/packet.h @@ -28,6 +28,7 @@ #include "epoll_loop.h" void packet_send(int ifindex, const unsigned char *data, int len); + int packet_sock_init(void); #endif -- 2.39.2