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

Function tdecode

scapy/utils.py:2940–2955  ·  view source on GitHub ↗

Run tshark on a list of packets. :param args: If not specified, defaults to ``tshark -V``. See :func:`tcpdump` for more parameters.

(
    pktlist,  # type: Union[IO[bytes], None, str, _PacketIterable]
    args=None,  # type: Optional[List[str]]
    **kwargs  # type: Any
)

Source from the content-addressed store, hash-verified

2938
2939@conf.commands.register
2940def tdecode(
2941 pktlist, # type: Union[IO[bytes], None, str, _PacketIterable]
2942 args=None, # type: Optional[List[str]]
2943 **kwargs # type: Any
2944):
2945 # type: (...) -> Any
2946 """
2947 Run tshark on a list of packets.
2948
2949 :param args: If not specified, defaults to ``tshark -V``.
2950
2951 See :func:`tcpdump` for more parameters.
2952 """
2953 if args is None:
2954 args = ["-V"]
2955 return tcpdump(pktlist, prog=conf.prog.tshark, args=args, **kwargs)
2956
2957
2958def _guess_linktype_name(value):

Callers

nothing calls this directly

Calls 1

tcpdumpFunction · 0.85

Tested by

no test coverage detected