(self, pkt, x)
| 900 | return self.h2i(pkt, x) |
| 901 | |
| 902 | def i2repr(self, pkt, x): |
| 903 | # type: (Optional[Packet], Union[str, Net]) -> str |
| 904 | if isinstance(x, _ScopedIP) and x.scope: |
| 905 | return repr(x) |
| 906 | r = self.resolve(self.i2h(pkt, x)) |
| 907 | return r if isinstance(r, str) else repr(r) |
| 908 | |
| 909 | def randval(self): |
| 910 | # type: () -> RandIP |