Lines Matching +full:html +full:- +full:encoding +full:- +full:sniffer
21 * pcap-common.c - common code for pcap and pcapng files
28 #include <pcap-types.h>
30 #include "pcap-int.h"
32 #include "pcap-common.h"
40 * libpcap for non-BSD OSes have added their own DLT_* codes for link
68 * "tcpdump-workers@lists.tcpdump.org". The tcpdump developers will
80 * are available; you might not have the most up-to-date version of this
82 * do *NOT* use any values below 100 - those might already have been
109 #define LINKTYPE_ARCNET_BSD DLT_ARCNET /* BSD-style headers */
116 * PPP in HDLC-like framing header (with 0xff 0x03 before the PPP protocol
121 * point-to-point with HDLC framing as per section 4.3.1 of RFC 1547 ("Cisco
129 #define LINKTYPE_PPP_HDLC 50 /* PPP in HDLC-like framing */
131 #define LINKTYPE_PPP_ETHER 51 /* NetBSD PPP-over-Ethernet */
141 #define LINKTYPE_ATM_RFC1483 100 /* LLC/SNAP-encapsulated ATM */
147 * Values starting with 104 are used for newly-assigned link-layer
148 * header type values; for those link-layer header types, the DLT_
191 #define LINKTYPE_CISCO_IOS 118 /* For Cisco-internal use */
200 #define LINKTYPE_IP_OVER_FC 122 /* RFC 2625 IP-over-Fibre Channel */
217 * which includes a means to include meta-information
221 #define LINKTYPE_TZSP 128 /* Tazmen Sniffer Protocol */
223 #define LINKTYPE_ARCNET_LINUX 129 /* Linux-style headers */
226 * Juniper-private data link types, as per request from
228 * DLT_s are used for passing on chassis-internal
240 #define LINKTYPE_APPLE_IP_OVER_IEEE1394 138 /* Apple IP-over-IEEE 1394 cooked header */
249 #define LINKTYPE_LINUX_IRDA 144 /* Linux-IrDA */
258 * Reserved for private use. If you have some link-layer header type
260 * using that link-layer header type not ever be sent outside your
267 * your private versions of capture-file-reading tools to read; in
279 * Instead, in those cases, ask "tcpdump-workers@lists.tcpdump.org" for a
301 * For future use with 802.11 captures - defined by AbsoluteValue
302 * Systems to store a number of bits of link-layer information
310 * Juniper-private data link type, as per request from
312 * DLT_s are used for passing on chassis-internal
327 * supply pppd with outgoing packets so it can do dial-on-demand and
328 * hangup-on-lack-of-demand; incoming packets are filtered out so they
334 * the direction - 0x00 = IN, 0x01 = OUT.
339 * Juniper-private data link type, as per request from
341 * for passing on chassis-internal metainformation such as
348 #define LINKTYPE_GPF_T 170 /* GPF-T (ITU-T G.7041/Y.1303) */
349 #define LINKTYPE_GPF_F 171 /* GPF-F (ITU-T G.7041/Y.1303) */
359 * Juniper-private data link type, as per request from
369 * the link-layer header.
372 #define LINKTYPE_ERF_POS 176 /* Packet-over-SONET */
376 * for vISDN (http://www.orlandi.com/visdn/). Its link-layer header
383 * Juniper-private data link type, as per request from
385 * The Link Types are used for prepending meta-information
387 * before standard Ethernet, PPP, Frelay & C-HDLC Frames
400 * Juniper-private data link type, as per request from
419 * Please refer to the A653-1 standard for more information.
427 * However, that header didn't work all that well - it left out some
428 * useful information - and was abandoned in favor of the DLT_USB_LINUX
459 * http://www.can-cia.org/downloads/?269
482 * Juniper-private data link type, as per request from
501 * Various link-layer types, with a pseudo-header, for SITA
507 * Various link-layer types, with a pseudo-header, for Endace DAG cards;
521 * IPMB packet for IPMI, beginning with a 2-byte header, followed by
525 * XXX - its DLT_ value used to be called DLT_IPMB, back when we got the
527 * had no extra 2-byte header. We've renamed it; if anybody used
528 * DLT_IPMB and assumed no 2-byte header, this will cause the compile
537 * Juniper-private data link type, as per request from
544 * Bluetooth HCI UART transport layer (part H:4), with pseudo-header
550 * AX.25 packet with a 1-byte KISS header; see
554 * as per Richard Stearn <richard@rns-stearn.demon.co.uk>.
560 * with no pseudo-header.
566 * PPP, with a one-byte direction pseudo-header prepended - zero means
567 * "received by this host", non-zero (any non-zero value) means "sent by
568 * this host" - as per Will Barker <w.barker@zen.co.uk>.
573 * Cisco HDLC, with a one-byte direction pseudo-header prepended - zero
574 * means "received by this host", non-zero (any non-zero value) means
575 * "sent by this host" - as per Will Barker <w.barker@zen.co.uk>.
580 * Frame Relay, with a one-byte direction pseudo-header prepended - zero
581 * means "received by this host" (DCE -> DTE), non-zero (any non-zero
582 * value) means "sent by this host" (DTE -> DCE) - as per Will Barker
588 * LAPB, with a one-byte direction pseudo-header prepended - zero means
589 * "received by this host" (DCE -> DTE), non-zero (any non-zero value)
590 * means "sent by this host" (DTE -> DCE)- as per Will Barker
596 * 208 is reserved for an as-yet-unspecified proprietary link-layer
601 * IPMB with a Linux-specific pseudo-header; as requested by Alexey Neyman
607 * FlexRay automotive bus - http://www.flexray.com/ - as requested
614 * transport - https://www.mostcooperation.com/ - as requested
620 * Local Interconnect Network (LIN) bus for vehicle networks -
621 * http://www.lin-subbus.org/ - as requested by Hannes Kaelber
627 * X2E-private data link type used for serial line capture,
633 * X2E-private data link type used for the Xoraya data logger
640 * nothing), but with the PHY-level data for non-ASK PHYs (4 octets
642 * reserved bit, and then the MAC-layer data, starting with the
666 * MPLS, with an MPLS label as the link-layer header.
674 * padded to 64 bytes; required for memory-mapped access.
679 * DECT packets, with a pseudo-header; requested by
685 * From: "Lidwa, Eric (GSFC-582.0)[SGT INC]" <eric.lidwa-1@nasa.gov>
686 * Date: Mon, 11 May 2009 11:18:30 -0500
705 * Fibre Channel FC-2 frames, beginning with a Frame_Header.
711 * Fibre Channel FC-2 frames, beginning with an encoding of the
712 * SOF, and ending with an encoding of the EOF.
714 * The encodings represent the frame delimiters as 4-byte sequences
717 * byte values; for example, SOFi2, which is K28.5 - D21.5 - D1.2 - D21.2,
725 * Solaris ipnet pseudo-header; requested by Darren Reed <Darren.Reed@Sun.COM>.
727 * The pseudo-header starts with a one-byte version number; for version 2,
728 * the pseudo-header is:
741 * dli_version is 2 for the current version of the pseudo-header.
746 * dli_htype is a "hook type" - 0 for incoming packets, 1 for outgoing
750 * dli_pktlen is the length of the packet data following the pseudo-header
752 * pseudo-header, assuming the entire pseudo-header was captured).
767 * An IPv4 or IPv6 datagram follows the pseudo-header; dli_family indicates
773 * CAN (Controller Area Network) frames, with a pseudo-header as supplied
774 * by Linux SocketCAN, and with multi-byte numerical fields in that header
775 * in big-endian byte order.
798 * Raw D-Bus:
804 * https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages
809 * https://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol
816 * Juniper-private data link type, as per request from
824 * DVB-CI (DVB Common Interface for communication between a PC Card
827 * https://www.kaiser.cx/pcap-dvbci.html
837 * by Hans-Christoph Schemmel <hans-christoph.schemmel@cinterion.com>.
848 * Juniper-private data link type, as per request from
857 * Requested by Jakub Zawadzki <darkjames-ws@darkjames.pl>
862 * Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
863 * for Ethernet packets with a 4-byte pseudo-header and always
872 * Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
873 * for Ethernet packets with a 4-byte pseudo-header and FCS and
882 * IP-over-InfiniBand, as specified by RFC 4391.
889 * MPEG-2 transport stream (ISO 13818-1/ITU-T H.222.0).
896 * ng4T GmbH's UMTS Iub/Iur-over-ATM and Iub/Iur-over-IP format as
904 * Pseudo-header giving adapter number and flags, followed by an NFC
905 * (Near-Field Communications) Logical Link Control Protocol (LLCP) PDU,
917 * shiny new link-layer header type value that doesn't collide with
932 * SCTP, with no lower-level protocols (i.e., no IPv4 or IPv6).
946 * Schweitzer Engineering Laboratories "RTAC" product serial-line
954 * Bluetooth Low Energy air interface link-layer packets.
961 * Link-layer header type for upper-protocol layer PDU saves from wireshark.
976 * Link-layer header type for the netlink protocol (nlmon devices).
1006 * didn't know that the right way to get a link-layer header type is to
1024 * of the preamble specified by 802.3-2012 Clause 65, section
1030 * IPMI trace packets, as specified by Table 3-20 "Trace Data Block Format"
1075 * TI protocol sniffer.
1087 * https://lists.sandelman.ca/pipermail/tcpdump-workers/2017-May/000772.html
1089 * for: https://qemu-project.org/Features/VirtioVsock
1094 * Nordic Semiconductor Bluetooth LE sniffer.
1099 * Excentis DOCSIS 3.1 RF sniffer (XRA-31)
1101 * https://www.xra31.com/xra-header
1106 * mPackets, as specified by IEEE 802.3br Figure 99-4, starting
1113 * DisplayPort(DP) Standard preceded by a pseudo-header.
1124 * Sercos Monitor, per Manuel Jacob <manuel.jacob at steinbeis-stg.de>
1134 * https://github.com/matwey/libopenvizsla/wiki/OpenVizsla-protocol-description
1154 …* https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html#graph-dispatcher-p…
1165 * IEEE 802.15.4 with pseudo-header and optional meta-data TLVs, PHY payload
1168 * Specification at https://github.com/jkcko/ieee802.15.4-tap
1180 * https://socket.hr/draft-dfranusic-opsawg-elee-00.xml
1181 …ps://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=https://socket.hr/draft-dfranusic-opsawg-elee-…
1186 * Serial frames transmitted between a host and a Z-Wave chip.
1196 * ATSC Link-Layer Protocol (A/330) packets.
1274 { -1, -1 }
1304 for (i = 0; map[i].dlt != -1; i++) { in dlt_to_linktype()
1314 return (-1); in dlt_to_linktype()
1353 for (i = 0; map[i].linktype != -1; i++) { in linktype_to_dlt()
1369 * For most link-layer types, we use MAXIMUM_SNAPLEN.
1373 * https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages