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

Method init_fields

scapy/packet.py:276–285  ·  view source on GitHub ↗

Initialize each fields of the fields_desc dict

(self, for_dissect_only=False)

Source from the content-addressed store, hash-verified

274 return self.copy()
275
276 def init_fields(self, for_dissect_only=False):
277 # type: (bool) -> None
278 """
279 Initialize each fields of the fields_desc dict
280 """
281
282 if self.class_dont_cache.get(self.__class__, False):
283 self.do_init_fields(self.fields_desc)
284 else:
285 self.do_init_cached_fields(for_dissect_only=for_dissect_only)
286
287 def do_init_fields(self,
288 flist, # type: Sequence[AnyField]

Callers 1

__init__Method · 0.95

Calls 3

do_init_fieldsMethod · 0.95
do_init_cached_fieldsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected