summaryrefslogtreecommitdiff
path: root/mtu1280d.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtu1280d.c')
-rw-r--r--mtu1280d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mtu1280d.c b/mtu1280d.c
index 2876d96..d39187e 100644
--- a/mtu1280d.c
+++ b/mtu1280d.c
@@ -21,6 +21,7 @@
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/socket.h>
+#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/ip.h>
@@ -81,7 +82,7 @@ typedef struct fullframe {
int
sockfd(void)
{
- static sock = 0;
+ static int sock = 0;
if (!sock) {
sock = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW);
};