diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-22 16:05:30 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-22 16:05:30 -0700 |
commit | fcea43ad6fb5b65897be852e55052a93eb9c7396 (patch) | |
tree | c42840b4ec8b6c284c48c4baa46df8603b87bf8e | |
parent | dc9475c3c274f93558e212a79ec243a63d563df7 (diff) | |
download | rstp-fcea43ad6fb5b65897be852e55052a93eb9c7396.tar.gz |
Initialize packet socket
-rw-r--r-- | main.c | 3 | ||||
-rw-r--r-- | packet.h | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -26,6 +26,7 @@ #include "bridge_ctl.h" #include "ctl_socket_server.h" #include "netif_utils.h" +#include "packet.h" #include "log.h" #include <stdio.h> @@ -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) { @@ -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 |