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

Method addfield

scapy/fields.py:424–429  ·  view source on GitHub ↗
(self, pkt, s, val)

Source from the content-addressed store, hash-verified

422 return s, None
423
424 def addfield(self, pkt, s, val):
425 # type: (Packet, bytes, Any) -> bytes
426 if self._evalcond(pkt):
427 return self.fld.addfield(pkt, s, val)
428 else:
429 return s
430
431 def __getattr__(self, attr):
432 # type: (str) -> Any

Callers

nothing calls this directly

Calls 2

_evalcondMethod · 0.95
addfieldMethod · 0.45

Tested by

no test coverage detected