(pkt)
| 699 | |
| 700 | |
| 701 | def 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 | |
| 713 | def prnp0f(pkt): |
no test coverage detected