From 5265857ac40a5ec7dc875773d1dcad695c97a4af Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Thu, 20 May 2010 09:39:35 -0700 Subject: [PATCH] syscall: bsd, stub BindToDevice R=rsc CC=adg, golang-dev, r https://golang.org/cl/1257041 --- src/pkg/syscall/syscall_bsd.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pkg/syscall/syscall_bsd.go b/src/pkg/syscall/syscall_bsd.go index 332afa4bfa..c773daa7ce 100644 --- a/src/pkg/syscall/syscall_bsd.go +++ b/src/pkg/syscall/syscall_bsd.go @@ -362,6 +362,15 @@ func Sendto(fd int, p []byte, flags int, to Sockaddr) (errno int) { return sendto(fd, p, flags, ptr, n) } +// TODO: +// FreeBSD has IP_SENDIF. Darwin probably needs BSDLLCTest, see: +// http://developer.apple.com/mac/library/samplecode/BSDLLCTest/index.html + +// BindToDevice binds the socket associated with fd to device. +func BindToDevice(fd int, device string) (errno int) { + return ENOSYS +} + //sys kevent(kq int, change uintptr, nchange int, event uintptr, nevent int, timeout *Timespec) (n int, errno int) func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, errno int) {