(self, pkt, s)
| 3490 | return s + struct.pack(fmt, rawpfx) |
| 3491 | |
| 3492 | def getfield(self, pkt, s): |
| 3493 | # type: (Packet, bytes) -> Tuple[bytes, Tuple[str, int]] |
| 3494 | pfxlen = self.length_from(pkt) |
| 3495 | numbytes = self._numbytes(pfxlen) |
| 3496 | fmt = "!%is" % numbytes |
| 3497 | return s[numbytes:], self.m2i(pkt, (struct.unpack(fmt, s[:numbytes])[0], pfxlen)) # noqa: E501 |
| 3498 | |
| 3499 | |
| 3500 | class IPPrefixField(_IPPrefixFieldBase): |
nothing calls this directly
no test coverage detected