Home | History | Annotate | Download | only in test

Lines Matching refs:ICMP

145     # Linux hardcodes the ToS on ICMP errors to 0xc0 or greater because of
161 # bytes of a fragmentation needed ICMP error contain the MTU.
162 if hasattr(scapy.ICMP, "nexthopmtu"):
174 icmp = {4: scapy.ICMP, 6: scapy.ICMPv6EchoRequest}[version]
176 icmp(id=PING_IDENT, seq=PING_SEQ) / PING_PAYLOAD)
182 # Scapy doesn't provide an ICMP echo reply constructor.
183 icmpv4_reply = lambda **kwargs: scapy.ICMP(type=0, **kwargs)
184 icmp = {4: icmpv4_reply, 6: scapy.ICMPv6EchoReply}[version]
186 icmp(id=PING_IDENT, seq=PING_SEQ) / PING_PAYLOAD)