diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-02-08 07:45:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-08 07:45:34 +0000 |
commit | ac949192ce781902de712ea495b04fc84709ac2e (patch) | |
tree | 44ed70b77cb3911dda30ad33dd595cf2527de8c6 /dhcpv4/bindtodevice_linux.go | |
parent | 7f7030121c9f6f75cfcdd8d3b58f5bd2143a6025 (diff) | |
parent | d4666bc14118b32cc22ad68da36dbde8e3a93374 (diff) |
Merge pull request #2 from insomniacslk/bindtodevice_darwin
Added OS-specific implementations for binding to a network device
Diffstat (limited to 'dhcpv4/bindtodevice_linux.go')
-rw-r--r-- | dhcpv4/bindtodevice_linux.go | 11 |
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) +} |