From b9d5b08b0f3c8f0dbdbcf02f153f61857f1c3af0 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Mon, 26 Mar 2012 12:58:18 +0200 Subject: [PATCH] Missing include in transmitter.c --- src/transmitter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transmitter.c b/src/transmitter.c index 51a3116..ab9ec37 100644 --- a/src/transmitter.c +++ b/src/transmitter.c @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +#include /* struct ifreq */ #include /* {P,A}F_PACKET, ETH_P_*, socket, SOCK_RAW, * setsockopt, SOL_SOCKET, SO_BINDTODEVICE, sendto */ #include /* htons */ @@ -38,8 +39,6 @@ int sock; */ int transmission_init(void) { - unsigned char on = 1; - /* prepare settings for RAW socket */ socket_address.sll_family = PF_PACKET; /* RAW communication */ socket_address.sll_protocol = htons(ETH_P_IP); /* protocol above the ethernet layer */