| 533 | |
| 534 | |
| 535 | class DHCP(Packet): |
| 536 | name = "DHCP options" |
| 537 | fields_desc = [DHCPOptionsField("options", b"")] |
| 538 | |
| 539 | def mysummary(self): |
| 540 | for id in self.options: |
| 541 | if isinstance(id, tuple) and id[0] == "message-type": |
| 542 | return "DHCP %s" % DHCPTypes.get(id[1], "").capitalize() |
| 543 | return super(DHCP, self).mysummary() |
| 544 | |
| 545 | |
| 546 | bind_layers(UDP, BOOTP, dport=67, sport=68) |
no test coverage detected
searching dependent graphs…