aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/ip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/toys/pending/ip.c b/toys/pending/ip.c
index 66dd06fe..c4bb5d6c 100644
--- a/toys/pending/ip.c
+++ b/toys/pending/ip.c
@@ -34,9 +34,12 @@ config IP
#include <net/if_arp.h>
#include <ifaddrs.h>
#include <fnmatch.h>
-#include <netinet/ip.h>
#include <linux/if_tunnel.h>
+#ifndef IP_DF
+#define IP_DF 0x4000 /* don't fragment flag. */
+#endif
+
GLOBALS(
char stats, singleline, flush, *filter_dev, gbuf[8192];
int sockfd, connected, from_ok, route_cmd;