summaryrefslogtreecommitdiff
path: root/nicutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'nicutils.h')
-rw-r--r--nicutils.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/nicutils.h b/nicutils.h
new file mode 100644
index 0000000..b72d073
--- /dev/null
+++ b/nicutils.h
@@ -0,0 +1,21 @@
+/*
+ * nicutils.h
+ *
+ * Created on: 16 Aug 2012
+ * Author: daniel
+ */
+
+#ifndef NICUTILS_H_
+#define NICUTILS_H_
+
+#include <stdbool.h>
+#include <netinet/in.h>
+
+typedef struct {
+ char ip[INET6_ADDRSTRLEN];
+ char mac[18];
+} nicinfo;
+
+bool nicutils_infofordefaultroute(nicinfo* result);
+
+#endif /* NICUTILS_H_ */