Home | History | Annotate | Download | only in libpcap

Lines Matching full:layer

148 	OR_LINK,	/* relative to the link-layer header */
149 OR_NET, /* relative to the network-layer header */
150 OR_NET_NOSNAP, /* relative to the network-layer header, with no SNAP header at the link layer */
151 OR_TRAN_IPV4, /* relative to the transport-layer header, with IPv4 network layer */
152 OR_TRAN_IPV6 /* relative to the transport-layer header, with IPv6 network layer */
683 * layer. These variables give the necessary offsets from the beginning
686 * If the link layer has variable_length headers, the offsets are offsets
687 * from the end of the link-link-layer header, and "reg_ll_size" is
689 * link-layer header. Otherwise, "reg_ll_size" is -1.
694 * This is the offset of the beginning of the link-layer header from
704 * This is the offset of the beginning of the MAC-layer header.
711 * "off_linktype" is the offset to information in the link-layer header
713 * of the link-layer header (i.e., it doesn't include off_ll).
717 * For link-layer types that always use 802.2 headers, it's the
733 * TRUE if the link layer includes an ATM pseudo-header.
770 * These are offsets to the beginning of the network-layer header.
771 * They are relative to the beginning of the link-layer header (i.e.,
774 * If the link layer never uses 802.2 LLC:
778 * If the link layer always uses 802.2 LLC:
785 * If the link layer is Ethernet:
974 * assume a 24-byte link-layer header, as appears in
1019 * header supply a link-layer type other than
1086 off_mac = -1; /* LLC-encapsulated, so no MAC-layer header */
1144 * Frame Relay has a variable length link-layer
1237 off_nl = -1; /* not really a network layer but raw IP adresses */
1321 * Load a value relative to the beginning of the link-layer header.
1322 * The link-layer header doesn't necessarily begin at the beginning
1336 * contains the length of the prefix preceding the link-layer
1339 * Otherwise, the length of the prefix preceding the link-layer
1345 * link-layer header. "s" points to a list of statements
1355 * link-layer header; add in off_ll, which, if there's
1356 * a fixed-length header preceding the link-layer header,
1398 * (plus the offset of the link-layer header, if it's
1405 * Load the item at {offset of the link-layer header} +
1406 * {offset, relative to the start of the link-layer
1410 * (If the link-layer is variable-length, it's included
1431 * the IPv4 header and any variable-length header preceding the link-layer
1443 * link-layer header. "s" points to a list of statements
1463 * of the prefix preceding the link-layer
1472 * link-layer header; add in off_ll, which, if there's
1473 * a fixed-length header preceding the link-layer header,
1631 * layer) may use 802.2 encapsulation.
1793 * layer) may use 802.2 encapsulation.
2106 * Generate code to compute the link-layer header length, if necessary,
2130 * link-layer type field or fields in the 802.2 LLC header.
2373 * For DLT_NULL, the link-layer header is a 32-bit
2375 * and for DLT_ENC, the link-layer header begins
2383 * For DLT_LOOP, the link-layer header is a 32-bit
2581 bpf_error("IrDA link-layer type filtering not implemented");
2584 bpf_error("DOCSIS link-layer type filtering not implemented");
2587 bpf_error("LAPD link-layer type filtering not implemented");
2642 * Generate code to match a particular packet type, for link-layer types
3798 bpf_error("link layer applied in wrong context");
3977 * Generate a comparison to a port value in the transport-layer header
3980 * XXX - this handles a variable-length prefix preceding the link-layer
3982 * variable-length link-layer headers (such as Token Ring or 802.11
5338 bpf_error("illegal link layer address");
5636 * the link-layer header.
5650 * the link-layer header. Add to it the offset computed
5666 * layer header (which is 0 if the radio header is
5690 * the network-layer header.
5699 * the link-layer header. Add to it the offset computed
5715 * layer header, and the offset of the start of the link
5716 * layer header (which is 0 if the radio header is
5745 * the transport-layer header.
5748 * (plus the offset of the link-layer header, if it's
5761 * of any variable-length header preceding the link-layer
5762 * header and the length of the network-layer header.
5764 * the beginning of the transport layer header,
5768 * layer header relative to the beginning of
5769 * the link-layer header plus the length of any
5770 * fixed-length header preceding the link-layer
5796 bpf_error("IPv6 upper-layer protocol is not supported by proto[x]");
6014 * the beginning of the link-layer header.
6126 bpf_error("only link-layer/IP broadcast filters supported");
6337 bpf_error("link-layer multicast filters supported only on ethernet/FDDI/token ring/ARCNET/802.11/ATM LANE/Fibre Channel");
6803 * Test against the PPPoE session link-layer type.
6839 * The "network-layer" protocol is PPPoE, which has a 6-byte
6841 * offsets to the network layer offset plus 6 bytes for
6851 * Set the link-layer type to PPP, as all subsequent tests will