Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AttachLsf (0.18 sec)

  1. src/syscall/lsf_linux.go

    	}
    	_, _, ep = Syscall(SYS_IOCTL, uintptr(s), SIOCSIFFLAGS, uintptr(unsafe.Pointer(&ifl)))
    	if ep != 0 {
    		return Errno(ep)
    	}
    	return nil
    }
    
    // Deprecated: Use golang.org/x/net/bpf instead.
    func AttachLsf(fd int, i []SockFilter) error {
    	var p SockFprog
    	p.Len = uint16(len(i))
    	p.Filter = (*SockFilter)(unsafe.Pointer(&i[0]))
    	return setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, unsafe.Pointer(&p), unsafe.Sizeof(p))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 16:27:36 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top