summaryrefslogtreecommitdiff
path: root/rdns_scan/zmap4rdns/src/get_gateway.c
diff options
context:
space:
mode:
Diffstat (limited to 'rdns_scan/zmap4rdns/src/get_gateway.c')
-rw-r--r--rdns_scan/zmap4rdns/src/get_gateway.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/rdns_scan/zmap4rdns/src/get_gateway.c b/rdns_scan/zmap4rdns/src/get_gateway.c
new file mode 100644
index 0000000..87abfcc
--- /dev/null
+++ b/rdns_scan/zmap4rdns/src/get_gateway.c
@@ -0,0 +1,30 @@
+/*
+ * ZMap Copyright 2013 Regents of the University of Michigan
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <errno.h>
+#include <assert.h>
+#include <string.h>
+
+#include <pcap/pcap.h>
+
+#include "../lib/includes.h"
+#include "../lib/logger.h"
+#include "../lib/xalloc.h"
+
+#include <sys/ioctl.h>
+
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
+ defined(__DragonFly__)
+#include "get_gateway-bsd.h"
+#else // (linux)
+#include "get_gateway-linux.h"
+#endif