github.com/ooni/psiphon/tunnel-core@v0.0.0-20230105123940-fe12a24c96ee/oovendor/quic-go/conn_helper_linux.go (about)

     1  //go:build linux
     2  // +build linux
     3  
     4  package quic
     5  
     6  import "golang.org/x/sys/unix"
     7  
     8  const msgTypeIPTOS = unix.IP_TOS
     9  
    10  const (
    11  	ipv4RECVPKTINFO = unix.IP_PKTINFO
    12  	ipv6RECVPKTINFO = unix.IPV6_RECVPKTINFO
    13  )
    14  
    15  const (
    16  	msgTypeIPv4PKTINFO = unix.IP_PKTINFO
    17  	msgTypeIPv6PKTINFO = unix.IPV6_PKTINFO
    18  )
    19  
    20  const batchSize = 8 // needs to smaller than MaxUint8 (otherwise the type of oobConn.readPos has to be changed)