- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 80 for SOCK_RAW (0.4 sec)
-
src/net/sockopt_windows.go
if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) } if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX && family != syscall.AF_INET6 { // Allow broadcast.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.5K bytes - Viewed (0) -
src/net/sockopt_bsd.go
} } if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW && supportsIPv4map() { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) } if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX { // Allow broadcast.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.2K bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/nettest_windows.go
package nettest import "syscall" func supportsRawSocket() bool { // From http://msdn.microsoft.com/en-us/library/windows/desktop/ms740548.aspx: // Note: To use a socket of type SOCK_RAW requires administrative privileges. // Users running Winsock applications that use raw sockets must be a member of // the Administrators group on the local computer, otherwise raw socket calls
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 19:27:51 UTC 2019 - 989 bytes - Viewed (0) -
src/net/sockopt_linux.go
if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) } if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX { // Allow broadcast.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.3K bytes - Viewed (0) -
src/net/main_posix_test.go
if so.Cookie.Family() == syscall.AF_INET && so.Cookie.Type() == syscall.SOCK_DGRAM { return nil, syscall.EHOSTUNREACH } case "ip4": if so.Cookie.Family() == syscall.AF_INET && so.Cookie.Type() == syscall.SOCK_RAW { return nil, syscall.EHOSTUNREACH } case "tcp6": if so.Cookie.Family() == syscall.AF_INET6 && so.Cookie.Type() == syscall.SOCK_STREAM { return nil, syscall.EHOSTUNREACH } case "udp6":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 1.4K bytes - Viewed (0) -
src/net/sockopt_aix.go
if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) } if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX { // Allow broadcast.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.4K bytes - Viewed (0) -
src/net/sockopt_solaris.go
if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) } if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX { // Allow broadcast.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.3K bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/nettest_unix.go
package nettest import "syscall" func supportsRawSocket() bool { for _, af := range []int{syscall.AF_INET, syscall.AF_INET6} { s, err := syscall.Socket(af, syscall.SOCK_RAW, 0) if err != nil { continue } syscall.Close(s) return true } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 526 bytes - Viewed (0) -
src/syscall/net_fake.go
//go:build js || wasip1 package syscall const ( AF_UNSPEC = iota AF_UNIX AF_INET AF_INET6 ) const ( SOCK_STREAM = 1 + iota SOCK_DGRAM SOCK_RAW SOCK_SEQPACKET ) const ( IPPROTO_IP = 0 IPPROTO_IPV4 = 4 IPPROTO_IPV6 = 0x29 IPPROTO_TCP = 6 IPPROTO_UDP = 0x11 ) const ( SOMAXCONN = 0x80 ) const ( _ = iota
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 883 bytes - Viewed (0) -
src/net/iprawsock_posix.go
ctrlCtxFn = func(ctx context.Context, network, address string, c syscall.RawConn) error { return sd.Dialer.Control(network, address, c) } } fd, err := internetSocket(ctx, network, laddr, raddr, syscall.SOCK_RAW, proto, "dial", ctrlCtxFn) if err != nil { return nil, err } return newIPConn(fd), nil } func (sl *sysListener) listenIP(ctx context.Context, laddr *IPAddr) (*IPConn, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 3.9K bytes - Viewed (0)