MCPcopy Create free account
hub / github.com/secdev/scapy / addresult

Function addresult

scapy/modules/p0fv2.py:583–590  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

581 result = {}
582
583 def addresult(res):
584 # TODO: wildcard window size in some cases? and maybe some
585 # other values?
586 if res[0] not in result:
587 result[res[0]] = [res[1]]
588 else:
589 if res[1] not in result[res[0]]:
590 result[res[0]].append(res[1])
591 # XXX could we try with a "normal" interface using other hosts
592 iface = conf.route.route('127.0.0.1')[0]
593 # each packet is seen twice: S + RA, S + SA + A + FA + A

Callers 1

p0f_getlocalsigsFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…