Lines Matching refs:constant_part
168 (cs)->off_linkhdr.constant_part = (new_constant_part); \
197 u_int constant_part; member
1144 cstate->off_outermostlinkhdr.constant_part = 0; in init_linktype()
1149 cstate->off_prevlinkhdr.constant_part = 0; in init_linktype()
1154 cstate->off_linkhdr.constant_part = 0; in init_linktype()
1161 cstate->off_linkpl.constant_part = 0; in init_linktype()
1165 cstate->off_linktype.constant_part = 0; in init_linktype()
1204 cstate->off_linktype.constant_part = 2; in init_linktype()
1205 cstate->off_linkpl.constant_part = 6; in init_linktype()
1211 cstate->off_linktype.constant_part = 4; in init_linktype()
1212 cstate->off_linkpl.constant_part = 8; in init_linktype()
1218 cstate->off_linktype.constant_part = 12; in init_linktype()
1219 cstate->off_linkpl.constant_part = 14; /* Ethernet header length */ in init_linktype()
1229 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1230 cstate->off_linkpl.constant_part = 16; in init_linktype()
1237 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1239 cstate->off_linkpl.constant_part = 24; in init_linktype()
1246 cstate->off_linktype.constant_part = 0; in init_linktype()
1247 cstate->off_linkpl.constant_part = 4; in init_linktype()
1253 cstate->off_linktype.constant_part = 0; in init_linktype()
1254 cstate->off_linkpl.constant_part = 12; in init_linktype()
1264 cstate->off_linktype.constant_part = 2; /* skip HDLC-like framing */ in init_linktype()
1265 cstate->off_linkpl.constant_part = 4; /* skip HDLC-like framing and protocol field */ in init_linktype()
1275 cstate->off_linktype.constant_part = 6; in init_linktype()
1276 cstate->off_linkpl.constant_part = 8; in init_linktype()
1282 cstate->off_linktype.constant_part = 5; in init_linktype()
1283 cstate->off_linkpl.constant_part = 24; in init_linktype()
1297 cstate->off_linktype.constant_part = 13; in init_linktype()
1298 cstate->off_linktype.constant_part += cstate->pcap_fddipad; in init_linktype()
1299 cstate->off_linkpl.constant_part = 13; /* FDDI MAC header length */ in init_linktype()
1300 cstate->off_linkpl.constant_part += cstate->pcap_fddipad; in init_linktype()
1329 cstate->off_linktype.constant_part = 14; in init_linktype()
1330 cstate->off_linkpl.constant_part = 14; /* Token Ring MAC header length */ in init_linktype()
1362 cstate->off_linktype.constant_part = 24; in init_linktype()
1363 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1379 cstate->off_linktype.constant_part = 24; in init_linktype()
1380 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1400 cstate->off_linktype.constant_part = 0; in init_linktype()
1401 cstate->off_linkpl.constant_part = 0; /* packet begins with LLC header */ in init_linktype()
1416 cstate->off_linktype.constant_part = cstate->off_payload; in init_linktype()
1417 cstate->off_linkpl.constant_part = cstate->off_payload; /* if LLC-encapsulated */ in init_linktype()
1425 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1426 cstate->off_linkpl.constant_part = 0; in init_linktype()
1432 cstate->off_linktype.constant_part = 14; in init_linktype()
1433 cstate->off_linkpl.constant_part = 16; in init_linktype()
1439 cstate->off_linktype.constant_part = 0; in init_linktype()
1440 cstate->off_linkpl.constant_part = 20; in init_linktype()
1451 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1452 cstate->off_linkpl.constant_part = 0; in init_linktype()
1468 cstate->off_linktype.constant_part = 16; in init_linktype()
1469 cstate->off_linkpl.constant_part = 16; in init_linktype()
1479 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1480 cstate->off_linkpl.constant_part = 0; in init_linktype()
1491 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1492 cstate->off_linkpl.constant_part = 0; in init_linktype()
1498 cstate->off_linktype.constant_part = 16; in init_linktype()
1499 cstate->off_linkpl.constant_part = 18; in init_linktype()
1505 cstate->off_linktype.constant_part = 6; in init_linktype()
1506 cstate->off_linkpl.constant_part = 44; in init_linktype()
1512 cstate->off_linktype.constant_part = 0; in init_linktype()
1513 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1525 cstate->off_linktype.constant_part = 4; in init_linktype()
1526 cstate->off_linkpl.constant_part = 4; in init_linktype()
1532 cstate->off_linktype.constant_part = 4; /* in reality variable between 4-8 */ in init_linktype()
1533 cstate->off_linkpl.constant_part = 4; /* in reality variable between 4-8 */ in init_linktype()
1539 cstate->off_linktype.constant_part = 8; /* in reality variable between 8-12 */ in init_linktype()
1540 cstate->off_linkpl.constant_part = 8; /* in reality variable between 8-12 */ in init_linktype()
1549 cstate->off_linkpl.constant_part = 14; in init_linktype()
1550 cstate->off_linktype.constant_part = 16; in init_linktype()
1556 cstate->off_linktype.constant_part = 4; in init_linktype()
1557 cstate->off_linkpl.constant_part = 6; in init_linktype()
1563 cstate->off_linktype.constant_part = 6; in init_linktype()
1564 cstate->off_linkpl.constant_part = 12; in init_linktype()
1570 cstate->off_linktype.constant_part = 6; in init_linktype()
1571 …cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* not really a network layer but raw IP addres… in init_linktype()
1577 cstate->off_linktype.constant_part = 12; in init_linktype()
1578 cstate->off_linkpl.constant_part = 12; in init_linktype()
1584 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1585 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1591 cstate->off_linktype.constant_part = 12; in init_linktype()
1592 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* L3 proto location dep. on cookie type */ in init_linktype()
1598 cstate->off_linktype.constant_part = 18; in init_linktype()
1599 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1605 cstate->off_linktype.constant_part = 18; in init_linktype()
1606 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1612 cstate->off_linktype.constant_part = 8; in init_linktype()
1613 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1622 cstate->off_linktype.constant_part = 8; in init_linktype()
1623 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1635 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1636 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1648 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1649 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1661 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1662 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1668 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1669 cstate->off_linkpl.constant_part = 4; in init_linktype()
1678 cstate->off_linktype.constant_part = OFFSET_NOT_SET; /* variable, min 15, max 71 steps of 7 */ in init_linktype()
1679 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1685 cstate->off_linktype.constant_part = 1; in init_linktype()
1686 cstate->off_linkpl.constant_part = 24; /* ipnet header length */ in init_linktype()
1692 cstate->off_linkhdr.constant_part = 4; /* Ethernet header is past 4-byte pseudo-header */ in init_linktype()
1693 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in init_linktype()
1694 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+Ethern… in init_linktype()
1700 …cstate->off_linkhdr.constant_part = 12; /* MAC header is past 4-byte pseudo-header, preamble, and … in init_linktype()
1701 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in init_linktype()
1702 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+preamb… in init_linktype()
1714 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1715 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1757 s2->s.k = abs_offset->constant_part + offset; in gen_load_absoffsetrel()
1765 s->s.k = abs_offset->constant_part + offset; in gen_load_absoffsetrel()
1848 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + offset; in gen_load_a()
1882 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_loadx_iphdrlen()
1913 s->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_loadx_iphdrlen()
2323 b1 = gen_cmp(cstate, OR_LINKHDR, cstate->off_linkpl.constant_part, BPF_B, in gen_linux_sll_linktype()
2730 s->s.k = cstate->off_outermostlinkhdr.constant_part; in gen_load_802_11_header_len()
3670 if (cstate->off_linktype.constant_part != OFFSET_NOT_SET) { in gen_linktype()
6155 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 9; in gen_protochain()
6159 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6168 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 6; in gen_protochain()
6244 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6252 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 1; in gen_protochain()
6313 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6331 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
7072 if (cstate->off_linktype.constant_part == OFFSET_NOT_SET && in gen_scode()
7680 tmp->s.k = cstate->off_linkhdr.constant_part; in gen_load_internal()
7727 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_load_internal()
7784 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_load_internal()
7842 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 40; in gen_load_internal()
9032 cstate->off_linkpl.constant_part += 4; in gen_vlan_no_bpf_extensions()
9033 cstate->off_linktype.constant_part += 4; in gen_vlan_no_bpf_extensions()
9233 cstate->off_linkhdr.constant_part == in gen_vlan()
9234 cstate->off_outermostlinkhdr.constant_part) { in gen_vlan()
9419 cstate->off_linkpl.constant_part + cstate->off_nl + 6, /* 6 bytes past the PPPoE header */ in gen_pppoes()
9423 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 2; in gen_pppoes()
9548 s->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 8; in gen_geneve_offsets()
9562 cstate->off_linktype.constant_part = 0; in gen_geneve_offsets()
9659 cstate->off_linkpl.constant_part = 0; in gen_geneve_offsets()
9919 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in gen_atmtype_abbrev()
9920 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* Ethernet */ in gen_atmtype_abbrev()