package
0.0.0-20191123085552-55fcc16cd0eb
Repository: https://github.com/google/netstack.git
Documentation: pkg.go.dev
# Functions
AckNum creates a checker that checks the ack number.
DstAddr creates a checker that checks the destination address.
DstPort creates a checker that checks the destination port.
FragmentFlags creates a checker that checks the fragment flags field.
FragmentOffset creates a checker that checks the FragmentOffset field.
ICMPv4 creates a checker that checks that the transport protocol is ICMPv4 and potentially additional ICMPv4 header fields.
ICMPv4Code creates a checker that checks the ICMPv4 Code field.
ICMPv4Type creates a checker that checks the ICMPv4 Type field.
ICMPv6 creates a checker that checks that the transport protocol is ICMPv6 and potentially additional ICMPv6 header fields.
ICMPv6Code creates a checker that checks the ICMPv6 Code field.
ICMPv6Type creates a checker that checks the ICMPv6 Type field.
IPv4 checks the validity and properties of the given IPv4 packet.
IPv6 checks the validity and properties of the given IPv6 packet.
IPv6Fragment creates a checker that validates an IPv6 fragment.
NDP creates a checker that checks that the packet contains a valid NDP message for type of ty, with potentially additional checks specified by checkers.
NDPNS creates a checker that checks that the packet contains a valid NDP Neighbor Solicitation message (as per the raw wire format), with potentially additional checks specified by checkers.
NDPNSTargetAddress creates a checker that checks the Target Address field of a header.NDPNeighborSolicit.
Payload creates a checker that checks the payload.
PayloadLen creates a checker that checks the payload length.
Raw creates a checker that checks the bytes of payload.
SeqNum creates a checker that checks the sequence number.
SrcAddr creates a checker that checks the source address.
SrcPort creates a checker that checks the source port.
TCP creates a checker that checks that the transport protocol is TCP and potentially additional transport header fields.
TCPFlags creates a checker that checks the tcp flags.
TCPFlagsMatch creates a checker that checks that the tcp flags, masked by the given mask, match the supplied flags.
TCPNoSACKBlockChecker creates a checker that verifies that the segment does not contain any SACK blocks in the TCP options.
TCPSACKBlockChecker creates a checker that verifies that the segment does contain the specified SACK blocks in the TCP options.
TCPSynOptions creates a checker that checks the presence of TCP options in SYN segments.
TCPTimestampChecker creates a checker that validates that a TCP segment has a TCP Timestamp option if wantTS is true, it also compares the wantTSVal and wantTSEcr values with those in the TCP segment (if present).
TOS creates a checker that checks the TOS field.
TTL creates a checker that checks the TTL (ipv4) or HopLimit (ipv6).
UDP creates a checker that checks that the transport protocol is UDP and potentially additional transport header fields.
Window creates a checker that checks the tcp window.
# Type aliases
NetworkChecker is a function to check a property of a network packet.
TransportChecker is a function to check a property of a transport packet.