summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/bindtodevice_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/bindtodevice_linux.go')
-rw-r--r--dhcpv4/bindtodevice_linux.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/dhcpv4/bindtodevice_linux.go b/dhcpv4/bindtodevice_linux.go
new file mode 100644
index 0000000..957744a
--- /dev/null
+++ b/dhcpv4/bindtodevice_linux.go
@@ -0,0 +1,11 @@
+// +build linux
+
+package dhcpv4
+
+import (
+ "syscall"
+)
+
+func BindToInterface(fd int, ifname string) error {
+ return syscall.BindToDevice(fd, ifname)
+}