Lines Matching refs:constant_part

181 	(cs)->off_linkhdr.constant_part = (new_constant_part); \
210 u_int constant_part; member
1141 cstate->off_outermostlinkhdr.constant_part = 0; in init_linktype()
1146 cstate->off_prevlinkhdr.constant_part = 0; in init_linktype()
1151 cstate->off_linkhdr.constant_part = 0; in init_linktype()
1158 cstate->off_linkpl.constant_part = 0; in init_linktype()
1162 cstate->off_linktype.constant_part = 0; in init_linktype()
1201 cstate->off_linktype.constant_part = 2; in init_linktype()
1202 cstate->off_linkpl.constant_part = 6; in init_linktype()
1208 cstate->off_linktype.constant_part = 4; in init_linktype()
1209 cstate->off_linkpl.constant_part = 8; in init_linktype()
1215 cstate->off_linktype.constant_part = 12; in init_linktype()
1216 cstate->off_linkpl.constant_part = 14; /* Ethernet header length */ in init_linktype()
1226 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1227 cstate->off_linkpl.constant_part = 16; in init_linktype()
1234 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1236 cstate->off_linkpl.constant_part = 24; in init_linktype()
1243 cstate->off_linktype.constant_part = 0; in init_linktype()
1244 cstate->off_linkpl.constant_part = 4; in init_linktype()
1250 cstate->off_linktype.constant_part = 0; in init_linktype()
1251 cstate->off_linkpl.constant_part = 12; in init_linktype()
1260 cstate->off_linktype.constant_part = 2; /* skip HDLC-like framing */ in init_linktype()
1261 cstate->off_linkpl.constant_part = 4; /* skip HDLC-like framing and protocol field */ in init_linktype()
1271 cstate->off_linktype.constant_part = 6; in init_linktype()
1272 cstate->off_linkpl.constant_part = 8; in init_linktype()
1278 cstate->off_linktype.constant_part = 5; in init_linktype()
1279 cstate->off_linkpl.constant_part = 24; in init_linktype()
1293 cstate->off_linktype.constant_part = 13; in init_linktype()
1294 cstate->off_linktype.constant_part += cstate->pcap_fddipad; in init_linktype()
1295 cstate->off_linkpl.constant_part = 13; /* FDDI MAC header length */ in init_linktype()
1296 cstate->off_linkpl.constant_part += cstate->pcap_fddipad; in init_linktype()
1325 cstate->off_linktype.constant_part = 14; in init_linktype()
1326 cstate->off_linkpl.constant_part = 14; /* Token Ring MAC header length */ in init_linktype()
1358 cstate->off_linktype.constant_part = 24; in init_linktype()
1359 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1375 cstate->off_linktype.constant_part = 24; in init_linktype()
1376 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1396 cstate->off_linktype.constant_part = 0; in init_linktype()
1397 cstate->off_linkpl.constant_part = 0; /* packet begins with LLC header */ in init_linktype()
1412 cstate->off_linktype.constant_part = cstate->off_payload; in init_linktype()
1413 cstate->off_linkpl.constant_part = cstate->off_payload; /* if LLC-encapsulated */ in init_linktype()
1421 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1422 cstate->off_linkpl.constant_part = 0; in init_linktype()
1428 cstate->off_linktype.constant_part = 14; in init_linktype()
1429 cstate->off_linkpl.constant_part = 16; in init_linktype()
1435 cstate->off_linktype.constant_part = 0; in init_linktype()
1436 cstate->off_linkpl.constant_part = 20; in init_linktype()
1447 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1448 cstate->off_linkpl.constant_part = 0; in init_linktype()
1464 cstate->off_linktype.constant_part = 16; in init_linktype()
1465 cstate->off_linkpl.constant_part = 16; in init_linktype()
1475 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1476 cstate->off_linkpl.constant_part = 0; in init_linktype()
1487 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1488 cstate->off_linkpl.constant_part = 0; in init_linktype()
1494 cstate->off_linktype.constant_part = 16; in init_linktype()
1495 cstate->off_linkpl.constant_part = 18; in init_linktype()
1501 cstate->off_linktype.constant_part = 6; in init_linktype()
1502 cstate->off_linkpl.constant_part = 44; in init_linktype()
1509 cstate->off_linktype.constant_part = 0; in init_linktype()
1510 cstate->off_linkpl.constant_part = PFLOG_HDRLEN; in init_linktype()
1522 cstate->off_linktype.constant_part = 4; in init_linktype()
1523 cstate->off_linkpl.constant_part = 4; in init_linktype()
1529 cstate->off_linktype.constant_part = 4; /* in reality variable between 4-8 */ in init_linktype()
1530 cstate->off_linkpl.constant_part = 4; /* in reality variable between 4-8 */ in init_linktype()
1536 cstate->off_linktype.constant_part = 8; /* in reality variable between 8-12 */ in init_linktype()
1537 cstate->off_linkpl.constant_part = 8; /* in reality variable between 8-12 */ in init_linktype()
1546 cstate->off_linkpl.constant_part = 14; in init_linktype()
1547 cstate->off_linktype.constant_part = 16; in init_linktype()
1553 cstate->off_linktype.constant_part = 4; in init_linktype()
1554 cstate->off_linkpl.constant_part = 6; in init_linktype()
1560 cstate->off_linktype.constant_part = 6; in init_linktype()
1561 cstate->off_linkpl.constant_part = 12; in init_linktype()
1567 cstate->off_linktype.constant_part = 6; in init_linktype()
1568 …cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* not really a network layer but raw IP addres… in init_linktype()
1574 cstate->off_linktype.constant_part = 12; in init_linktype()
1575 cstate->off_linkpl.constant_part = 12; in init_linktype()
1581 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1582 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1588 cstate->off_linktype.constant_part = 12; in init_linktype()
1589 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* L3 proto location dep. on cookie type */ in init_linktype()
1595 cstate->off_linktype.constant_part = 18; in init_linktype()
1596 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1602 cstate->off_linktype.constant_part = 18; in init_linktype()
1603 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1609 cstate->off_linktype.constant_part = 8; in init_linktype()
1610 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1619 cstate->off_linktype.constant_part = 8; in init_linktype()
1620 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1632 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1633 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1645 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1646 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1658 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1659 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1665 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1666 cstate->off_linkpl.constant_part = 4; in init_linktype()
1675 cstate->off_linktype.constant_part = OFFSET_NOT_SET; /* variable, min 15, max 71 steps of 7 */ in init_linktype()
1676 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1682 cstate->off_linktype.constant_part = 1; in init_linktype()
1683 cstate->off_linkpl.constant_part = 24; /* ipnet header length */ in init_linktype()
1689 cstate->off_linkhdr.constant_part = 4; /* Ethernet header is past 4-byte pseudo-header */ in init_linktype()
1690 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in init_linktype()
1691 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+Ethern… in init_linktype()
1697 …cstate->off_linkhdr.constant_part = 12; /* MAC header is past 4-byte pseudo-header, preamble, and … in init_linktype()
1698 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in init_linktype()
1699 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+preamb… in init_linktype()
1711 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1712 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1753 s2->s.k = abs_offset->constant_part + offset; in gen_load_absoffsetrel()
1761 s->s.k = abs_offset->constant_part + offset; in gen_load_absoffsetrel()
1844 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + offset; in gen_load_a()
1878 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_loadx_iphdrlen()
1909 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()
2677 s->s.k = cstate->off_outermostlinkhdr.constant_part; in gen_load_802_11_header_len()
3629 if (cstate->off_linktype.constant_part != OFFSET_NOT_SET) { in gen_linktype()
6108 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 9; in gen_protochain()
6112 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6121 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 6; in gen_protochain()
6197 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6205 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 1; in gen_protochain()
6266 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6284 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6763 if (cstate->off_linktype.constant_part == OFFSET_NOT_SET && in gen_scode()
7372 tmp->s.k = cstate->off_linkhdr.constant_part; in gen_load_internal()
7419 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_load_internal()
7476 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_load_internal()
7538 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 40; in gen_load_internal()
8777 cstate->off_linkpl.constant_part += 4; in gen_vlan_no_bpf_extensions()
8778 cstate->off_linktype.constant_part += 4; in gen_vlan_no_bpf_extensions()
8977 cstate->off_linkhdr.constant_part == in gen_vlan()
8978 cstate->off_outermostlinkhdr.constant_part) { in gen_vlan()
9163 cstate->off_linkpl.constant_part + cstate->off_nl + 6, /* 6 bytes past the PPPoE header */ in gen_pppoes()
9167 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 2; in gen_pppoes()
9293 s->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 8; in gen_geneve_offsets()
9307 cstate->off_linktype.constant_part = 0; in gen_geneve_offsets()
9404 cstate->off_linkpl.constant_part = 0; in gen_geneve_offsets()
9664 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in gen_atmtype_abbrev()
9665 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* Ethernet */ in gen_atmtype_abbrev()