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

Method mtu_find_match

scapy/modules/p0f.py:572–581  ·  view source on GitHub ↗

Finds a match for the given MTU. If a match is found, returns the label string. Returns None if no match was found

(self, mtu)

Source from the content-addressed store, hash-verified

570 return gmatch if gmatch else None
571
572 def mtu_find_match(self, mtu):
573 """
574 Finds a match for the given MTU.
575 If a match is found, returns the label string.
576 Returns None if no match was found
577 """
578 for mtu_record in self.base["mtu"]:
579 if mtu == mtu_record.mtu:
580 return self.labels[mtu_record.label_id]
581 return None
582
583
584p0fdb = p0fKnowledgeBase(conf.p0f_base)

Callers 1

fingerprint_mtuFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected