package
0.0.0-20180524224622-583358ac5197
Repository: https://github.com/costinm/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.
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.
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.
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.