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

Function _match

scapy/libs/extcap.py:70–74  ·  view source on GitHub ↗
(val: str, ifa: str)

Source from the content-addressed store, hash-verified

68 continue
69
70 def _match(val: str, ifa: str) -> str:
71 m = re.search(r"{%s=([^}]*)}" % val, ifa)
72 if m:
73 return m.group(1)
74 return ""
75 res[keyword].append(
76 tuple(
77 [_match(val, ifa) for val in values]

Callers 1

_extcap_callFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected