2021-09-23 09:34:58 +00:00
|
|
|
//go:build !darwin && !linux
|
2019-10-05 15:47:15 +00:00
|
|
|
// +build !darwin,!linux
|
2019-01-13 18:08:41 +00:00
|
|
|
|
2021-05-23 19:42:26 +00:00
|
|
|
package core
|
2019-01-13 18:08:41 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
|
|
|
// WARNING: This context is used both by net.Dialer and net.Listen in tcp.go
|
|
|
|
|
2022-09-17 19:07:00 +00:00
|
|
|
func (t *linkTCP) tcpContext(network, address string, c syscall.RawConn) error {
|
2019-01-13 18:08:41 +00:00
|
|
|
return nil
|
|
|
|
}
|
2019-10-26 00:32:53 +00:00
|
|
|
|
2022-09-17 19:07:00 +00:00
|
|
|
func (t *linkTCP) getControl(sintf string) func(string, string, syscall.RawConn) error {
|
2019-10-26 00:32:53 +00:00
|
|
|
return t.tcpContext
|
|
|
|
}
|