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

Method get_field

scapy/packet.py:388–391  ·  view source on GitHub ↗

DEV: returns the field instance from the name of the field

(self, fld)

Source from the content-addressed store, hash-verified

386 pass
387
388 def get_field(self, fld):
389 # type: (str) -> AnyField
390 """DEV: returns the field instance from the name of the field"""
391 return self.fieldtype[fld]
392
393 def add_payload(self, payload):
394 # type: (Union[Packet, bytes]) -> None

Callers 15

__init__Method · 0.95
getfield_and_valMethod · 0.95
setfieldvalMethod · 0.95
copy_field_valueMethod · 0.95
clear_cacheMethod · 0.95
loopMethod · 0.95
_commandMethod · 0.95
fuzzFunction · 0.80
get_hdrs_lenMethod · 0.80
get_hdrs_lenMethod · 0.80
edit_ticketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected