| 1039 | |
| 1040 | |
| 1041 | class _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 | |
| 1053 | def _ICMP_extpad_post_dissection(self, pkt): |
no outgoing calls
no test coverage detected