summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-03-22 16:05:30 -0700
committerStephen Hemminger <shemminger@linux-foundation.org>2007-03-22 16:05:30 -0700
commitfcea43ad6fb5b65897be852e55052a93eb9c7396 (patch)
treec42840b4ec8b6c284c48c4baa46df8603b87bf8e
parentdc9475c3c274f93558e212a79ec243a63d563df7 (diff)
downloadrstp-fcea43ad6fb5b65897be852e55052a93eb9c7396.tar.gz
Initialize packet socket
-rw-r--r--main.c3
-rw-r--r--packet.h1
2 files changed, 3 insertions, 1 deletions
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 <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) {
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