mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 294952610
This commit is contained in:
@@ -411,6 +411,15 @@ type ControlMessageCredentials struct {
|
||||
GID uint32
|
||||
}
|
||||
|
||||
// A ControlMessageIPPacketInfo is IP_PKTINFO socket control message.
|
||||
//
|
||||
// ControlMessageIPPacketInfo represents struct in_pktinfo from linux/in.h.
|
||||
type ControlMessageIPPacketInfo struct {
|
||||
NIC int32
|
||||
LocalAddr InetAddr
|
||||
DestinationAddr InetAddr
|
||||
}
|
||||
|
||||
// SizeOfControlMessageCredentials is the binary size of a
|
||||
// ControlMessageCredentials struct.
|
||||
var SizeOfControlMessageCredentials = int(binary.Size(ControlMessageCredentials{}))
|
||||
@@ -431,6 +440,10 @@ const SizeOfControlMessageTOS = 1
|
||||
// SizeOfControlMessageTClass is the size of an IPV6_TCLASS control message.
|
||||
const SizeOfControlMessageTClass = 4
|
||||
|
||||
// SizeOfControlMessageIPPacketInfo is the size of an IP_PKTINFO
|
||||
// control message.
|
||||
const SizeOfControlMessageIPPacketInfo = 12
|
||||
|
||||
// SCM_MAX_FD is the maximum number of FDs accepted in a single sendmsg call.
|
||||
// From net/scm.h.
|
||||
const SCM_MAX_FD = 253
|
||||
|
||||
Reference in New Issue
Block a user