diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-24 17:03:51 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-24 17:03:51 +0000 |
commit | 6d8d66038fd9439822069fd283761d7ea939a433 (patch) | |
tree | 188f7a8eee7a3c45dbbfb2871c40d0ea204d6b31 /pkg/tcpip/tcpip.go | |
parent | 95108940a01c1c1bbf6e8924e27b6cf80ca78ba1 (diff) | |
parent | e013c48c78c9a7daf245b7de9563e3a0bd8a1e97 (diff) |
Merge release-20191213.0-48-ge013c48 (automated)
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index f62fd729f..5c7b2af88 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -322,7 +322,7 @@ type ControlMessages struct { HasTOS bool // TOS is the IPv4 type of service of the associated packet. - TOS int8 + TOS uint8 // HasTClass indicates whether Tclass is valid/set. HasTClass bool @@ -666,6 +666,10 @@ type IPv4TOSOption uint8 // for all subsequent outgoing IPv6 packets from the endpoint. type IPv6TrafficClassOption uint8 +// ReceiveTOSOption is used by SetSockOpt/GetSockOpt to specify if the TOS +// ancillary message is passed with incoming packets. +type ReceiveTOSOption bool + // Route is a row in the routing table. It specifies through which NIC (and // gateway) sets of packets should be routed. A row is considered viable if the // masked target address matches the destination address in the row. |