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 */