MCPcopy Create free account
hub / github.com/secdev/scapy / DHCP

Class DHCP

scapy/layers/dhcp.py:535–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533
534
535class 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
546bind_layers(UDP, BOOTP, dport=67, sport=68)

Callers 2

dhcp_requestFunction · 0.85
make_replyMethod · 0.85

Calls 1

DHCPOptionsFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…