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

Method __init__

scapy/ansmachine.py:80–96  ·  view source on GitHub ↗
(self, **kargs)

Source from the content-addressed store, hash-verified

78 send_function = staticmethod(sendp)
79
80 def __init__(self, **kargs):
81 # type: (Any) -> None
82 self.mode = 0
83 self.verbose = kargs.get("verbose", conf.verb >= 0)
84 if self.filter:
85 kargs.setdefault("filter", self.filter)
86 kargs.setdefault("prn", self.reply)
87 self.optam1 = {} # type: Dict[str, Any]
88 self.optam2 = {} # type: Dict[str, Any]
89 self.optam0 = {} # type: Dict[str, Any]
90 doptsend, doptsniff = self.parse_all_options(1, kargs)
91 self.defoptsend = self.send_options.copy()
92 self.defoptsend.update(doptsend)
93 self.defoptsniff = self.sniff_options.copy()
94 self.defoptsniff.update(doptsniff)
95 self.optsend = {} # type: Dict[str, Any]
96 self.optsniff = {} # type: Dict[str, Any]
97
98 def __getattr__(self, attr):
99 # type: (str) -> Any

Callers

nothing calls this directly

Calls 4

parse_all_optionsMethod · 0.95
getMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected