MCPcopy Index your code
hub / github.com/secdev/scapy / add_parent

Method add_parent

scapy/packet.py:426–431  ·  view source on GitHub ↗

Set packet parent. When packet is an element in PacketListField, parent field would point to the list owner packet.

(self, parent)

Source from the content-addressed store, hash-verified

424 self.underlayer = None
425
426 def add_parent(self, parent):
427 # type: (Packet) -> None
428 """Set packet parent.
429 When packet is an element in PacketListField, parent field would
430 point to the list owner packet."""
431 self.parent = parent
432
433 def remove_parent(self, other):
434 # type: (Packet) -> None

Callers 2

any2iMethod · 0.45
any2iMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected