MCPcopy Index your code
hub / github.com/secdev/scapy / _ICMPExtensionPadField

Class _ICMPExtensionPadField

scapy/layers/inet.py:1041–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039
1040
1041class _ICMPExtensionPadField(TrailerField):
1042 def __init__(self):
1043 super(_ICMPExtensionPadField, self).__init__(
1044 StrFixedLenField("extpad", "", length=0)
1045 )
1046
1047 def i2repr(self, pkt, s):
1048 if s and s == b"\x00" * len(s):
1049 return "b'' (%s octets)" % len(s)
1050 return self.fld.i2repr(pkt, s)
1051
1052
1053def _ICMP_extpad_post_dissection(self, pkt):

Callers 3

ICMPv6DestUnreachClass · 0.90
ICMPv6TimeExceededClass · 0.90
ICMPClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected