Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 80 for SOCK_RAW (0.27 sec)

  1. src/net/internal/socktest/switch_posix.go

    	}
    }
    
    func typeString(sotype int) string {
    	var s string
    	switch sotype & 0xff {
    	case syscall.SOCK_STREAM:
    		s = "stream"
    	case syscall.SOCK_DGRAM:
    		s = "datagram"
    	case syscall.SOCK_RAW:
    		s = "raw"
    	case syscall.SOCK_SEQPACKET:
    		s = "seqpacket"
    	default:
    		s = fmt.Sprintf("%d", sotype&0xff)
    	}
    	if flags := uint(sotype) & ^uint(0xff); flags != 0 {
    		s += fmt.Sprintf("|%#x", flags)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. src/net/sockaddr_posix.go

    	switch fd.family {
    	case syscall.AF_INET, syscall.AF_INET6:
    		switch fd.sotype {
    		case syscall.SOCK_STREAM:
    			return sockaddrToTCP
    		case syscall.SOCK_DGRAM:
    			return sockaddrToUDP
    		case syscall.SOCK_RAW:
    			return sockaddrToIP
    		}
    	case syscall.AF_UNIX:
    		switch fd.sotype {
    		case syscall.SOCK_STREAM:
    			return sockaddrToUnix
    		case syscall.SOCK_DGRAM:
    			return sockaddrToUnixgram
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/syscall/lsf_linux.go

    func LsfSocket(ifindex, proto int) (int, error) {
    	var lsall SockaddrLinklayer
    	// This is missing SOCK_CLOEXEC, but adding the flag
    	// could break callers.
    	s, e := Socket(AF_PACKET, SOCK_RAW, proto)
    	if e != nil {
    		return 0, e
    	}
    	p := (*[2]byte)(unsafe.Pointer(&lsall.Protocol))
    	p[0] = byte(proto >> 8)
    	p[1] = byte(proto)
    	lsall.Ifindex = ifindex
    	e = Bind(s, &lsall)
    	if e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 16:27:36 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  4. src/syscall/netlink_linux.go

    }}
    
    // NetlinkRIB returns routing information base, as known as RIB, which
    // consists of network facility information, states and parameters.
    func NetlinkRIB(proto, family int) ([]byte, error) {
    	s, err := Socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE)
    	if err != nil {
    		return nil, err
    	}
    	defer Close(s)
    	sa := &SockaddrNetlink{Family: AF_NETLINK}
    	if err := Bind(s, sa); err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. src/net/fd_unix.go

    	ret := &netFD{
    		pfd: poll.FD{
    			Sysfd:         sysfd,
    			IsStream:      sotype == syscall.SOCK_STREAM,
    			ZeroReadIsEOF: sotype != syscall.SOCK_DGRAM && sotype != syscall.SOCK_RAW,
    		},
    		family: family,
    		sotype: sotype,
    		net:    net,
    	}
    	return ret, nil
    }
    
    func (fd *netFD) init() error {
    	return fd.pfd.Init(fd.net, true)
    }
    
    func (fd *netFD) name() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 20:19:46 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. src/net/fd_windows.go

    	ret := &netFD{
    		pfd: poll.FD{
    			Sysfd:         sysfd,
    			IsStream:      sotype == syscall.SOCK_STREAM,
    			ZeroReadIsEOF: sotype != syscall.SOCK_DGRAM && sotype != syscall.SOCK_RAW,
    		},
    		family: family,
    		sotype: sotype,
    		net:    net,
    	}
    	return ret, nil
    }
    
    func (fd *netFD) init() error {
    	errcall, err := fd.pfd.Init(fd.net, true)
    	if errcall != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:46:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/syscall/types_windows.go

    	DaylightBias int32
    }
    
    // Socket related.
    
    const (
    	AF_UNSPEC  = 0
    	AF_UNIX    = 1
    	AF_INET    = 2
    	AF_INET6   = 23
    	AF_NETBIOS = 17
    
    	SOCK_STREAM    = 1
    	SOCK_DGRAM     = 2
    	SOCK_RAW       = 3
    	SOCK_SEQPACKET = 5
    
    	IPPROTO_IP   = 0
    	IPPROTO_IPV6 = 0x29
    	IPPROTO_TCP  = 6
    	IPPROTO_UDP  = 17
    
    	SOL_SOCKET                = 0xffff
    	SO_REUSEADDR              = 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go

    	SHUT_WR                         = 1
    	SOCK_CLOEXEC                    = 0x00001000
    	SOCK_CONN_DGRAM                 = 6
    	SOCK_DGRAM                      = 2
    	SOCK_NONBLOCK                   = 0x800
    	SOCK_RAW                        = 3
    	SOCK_RDM                        = 4
    	SOCK_SEQPACKET                  = 5
    	SOCK_STREAM                     = 1
    	SOL_SOCKET                      = 0xffff
    	SOMAXCONN                       = 10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. src/syscall/zerrors_darwin_arm64.go

    	SIOCSLOWAT                        = 0x80047302
    	SIOCSPGRP                         = 0x80047308
    	SOCK_DGRAM                        = 0x2
    	SOCK_MAXADDRLEN                   = 0xff
    	SOCK_RAW                          = 0x3
    	SOCK_RDM                          = 0x4
    	SOCK_SEQPACKET                    = 0x5
    	SOCK_STREAM                       = 0x1
    	SOL_SOCKET                        = 0xffff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 55.8K bytes
    - Viewed (0)
  10. src/syscall/zerrors_aix_ppc64.go

    	SIOCSNETOPT                   = -0x7ffe96a6
    	SIOCSPGRP                     = 0xffffffff80047308
    	SIOCSX25XLATE                 = -0x7fd7969d
    	SOCK_CONN_DGRAM               = 0x6
    	SOCK_DGRAM                    = 0x2
    	SOCK_RAW                      = 0x3
    	SOCK_RDM                      = 0x4
    	SOCK_SEQPACKET                = 0x5
    	SOCK_STREAM                   = 0x1
    	SOL_SOCKET                    = 0xffff
    	SOMAXCONN                     = 0x400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 16:18:12 UTC 2019
    - 47.2K bytes
    - Viewed (0)
Back to top