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)
| 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 | |
| 584 | p0fdb = p0fKnowledgeBase(conf.p0f_base) |