about summary refs log tree commit diff
path: root/shared/n-dhcp4/src/util/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/n-dhcp4/src/util/socket.h')
-rw-r--r--shared/n-dhcp4/src/util/socket.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/n-dhcp4/src/util/socket.h b/shared/n-dhcp4/src/util/socket.h
new file mode 100644
index 00000000..b5ecf2c2
--- /dev/null
+++ b/shared/n-dhcp4/src/util/socket.h
@@ -0,0 +1,11 @@
+#pragma once
+
+/*
+ * Socket Utilities
+ */
+
+#include <c-stdaux.h>
+#include <stdlib.h>
+
+int socket_SIOCGIFNAME(int socket, int ifindex, char (*ifnamep)[IFNAMSIZ]);
+int socket_bind_if(int socket, int ifindex);