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

Function p0f

scapy/modules/p0f.py:701–710  ·  view source on GitHub ↗
(pkt)

Source from the content-addressed store, hash-verified

699
700
701def p0f(pkt):
702 sig, direction = packet2p0f(pkt)
703 if not p0fdb.get_base():
704 warning("p0f base empty.")
705 return None
706
707 if isinstance(sig, TCP_Signature):
708 return p0fdb.tcp_find_match(sig, direction)
709 else:
710 return p0fdb.http_find_match(sig, direction)
711
712
713def prnp0f(pkt):

Callers 1

prnp0fFunction · 0.70

Calls 5

warningFunction · 0.90
tcp_find_matchMethod · 0.80
http_find_matchMethod · 0.80
packet2p0fFunction · 0.70
get_baseMethod · 0.45

Tested by

no test coverage detected