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

Function lparse

scapy/modules/p0f.py:593–601  ·  view source on GitHub ↗

Parsing of 'a:b:c:d:e' lines

(line, n, delimiter=":", default="")

Source from the content-addressed store, hash-verified

591
592
593def lparse(line, n, delimiter=":", default=""):
594 """
595 Parsing of 'a:b:c:d:e' lines
596 """
597 a = line.split(delimiter)[:n]
598 for elt in a:
599 yield elt
600 for _ in range(n - len(a)):
601 yield default
602
603
604def validate_packet(pkt):

Callers 3

from_raw_sigMethod · 0.85
from_raw_sigMethod · 0.85
_parse_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…