(self, size=None, rndstr=None)
| 386 | |
| 387 | class RandDHCPOptions(RandField): |
| 388 | def __init__(self, size=None, rndstr=None): |
| 389 | if size is None: |
| 390 | size = RandNumExpo(0.05) |
| 391 | self.size = size |
| 392 | if rndstr is None: |
| 393 | rndstr = RandBin(RandNum(0, 255)) |
| 394 | self.rndstr = rndstr |
| 395 | self._opts = list(DHCPOptions.values()) |
| 396 | self._opts.remove("pad") |
| 397 | self._opts.remove("end") |
| 398 | |
| 399 | def _fix(self): |
| 400 | op = [] |
nothing calls this directly
no test coverage detected