Lines Matching refs:constant_part
179 (cs)->off_linkhdr.constant_part = (new_constant_part); \
208 u_int constant_part; member
1048 cstate->off_outermostlinkhdr.constant_part = 0; in init_linktype()
1053 cstate->off_prevlinkhdr.constant_part = 0; in init_linktype()
1058 cstate->off_linkhdr.constant_part = 0; in init_linktype()
1065 cstate->off_linkpl.constant_part = 0; in init_linktype()
1069 cstate->off_linktype.constant_part = 0; in init_linktype()
1108 cstate->off_linktype.constant_part = 2; in init_linktype()
1109 cstate->off_linkpl.constant_part = 6; in init_linktype()
1115 cstate->off_linktype.constant_part = 4; in init_linktype()
1116 cstate->off_linkpl.constant_part = 8; in init_linktype()
1122 cstate->off_linktype.constant_part = 12; in init_linktype()
1123 cstate->off_linkpl.constant_part = 14; /* Ethernet header length */ in init_linktype()
1133 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1134 cstate->off_linkpl.constant_part = 16; in init_linktype()
1141 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1143 cstate->off_linkpl.constant_part = 24; in init_linktype()
1150 cstate->off_linktype.constant_part = 0; in init_linktype()
1151 cstate->off_linkpl.constant_part = 4; in init_linktype()
1157 cstate->off_linktype.constant_part = 0; in init_linktype()
1158 cstate->off_linkpl.constant_part = 12; in init_linktype()
1167 cstate->off_linktype.constant_part = 2; /* skip HDLC-like framing */ in init_linktype()
1168 cstate->off_linkpl.constant_part = 4; /* skip HDLC-like framing and protocol field */ in init_linktype()
1178 cstate->off_linktype.constant_part = 6; in init_linktype()
1179 cstate->off_linkpl.constant_part = 8; in init_linktype()
1185 cstate->off_linktype.constant_part = 5; in init_linktype()
1186 cstate->off_linkpl.constant_part = 24; in init_linktype()
1200 cstate->off_linktype.constant_part = 13; in init_linktype()
1201 cstate->off_linktype.constant_part += cstate->pcap_fddipad; in init_linktype()
1202 cstate->off_linkpl.constant_part = 13; /* FDDI MAC header length */ in init_linktype()
1203 cstate->off_linkpl.constant_part += cstate->pcap_fddipad; in init_linktype()
1232 cstate->off_linktype.constant_part = 14; in init_linktype()
1233 cstate->off_linkpl.constant_part = 14; /* Token Ring MAC header length */ in init_linktype()
1264 cstate->off_linktype.constant_part = 24; in init_linktype()
1265 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1281 cstate->off_linktype.constant_part = 24; in init_linktype()
1282 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1302 cstate->off_linktype.constant_part = 0; in init_linktype()
1303 cstate->off_linkpl.constant_part = 0; /* packet begins with LLC header */ in init_linktype()
1318 cstate->off_linktype.constant_part = cstate->off_payload; in init_linktype()
1319 cstate->off_linkpl.constant_part = cstate->off_payload; /* if LLC-encapsulated */ in init_linktype()
1327 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1328 cstate->off_linkpl.constant_part = 0; in init_linktype()
1334 cstate->off_linktype.constant_part = 14; in init_linktype()
1335 cstate->off_linkpl.constant_part = 16; in init_linktype()
1346 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1347 cstate->off_linkpl.constant_part = 0; in init_linktype()
1363 cstate->off_linktype.constant_part = 16; in init_linktype()
1364 cstate->off_linkpl.constant_part = 16; in init_linktype()
1374 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1375 cstate->off_linkpl.constant_part = 0; in init_linktype()
1386 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1387 cstate->off_linkpl.constant_part = 0; in init_linktype()
1393 cstate->off_linktype.constant_part = 16; in init_linktype()
1394 cstate->off_linkpl.constant_part = 18; in init_linktype()
1400 cstate->off_linktype.constant_part = 6; in init_linktype()
1401 cstate->off_linkpl.constant_part = 44; in init_linktype()
1408 cstate->off_linktype.constant_part = 0; in init_linktype()
1409 cstate->off_linkpl.constant_part = PFLOG_HDRLEN; in init_linktype()
1421 cstate->off_linktype.constant_part = 4; in init_linktype()
1422 cstate->off_linkpl.constant_part = 4; in init_linktype()
1428 cstate->off_linktype.constant_part = 4; /* in reality variable between 4-8 */ in init_linktype()
1429 cstate->off_linkpl.constant_part = 4; /* in reality variable between 4-8 */ in init_linktype()
1435 cstate->off_linktype.constant_part = 8; /* in reality variable between 8-12 */ in init_linktype()
1436 cstate->off_linkpl.constant_part = 8; /* in reality variable between 8-12 */ in init_linktype()
1445 cstate->off_linkpl.constant_part = 14; in init_linktype()
1446 cstate->off_linktype.constant_part = 16; in init_linktype()
1452 cstate->off_linktype.constant_part = 4; in init_linktype()
1453 cstate->off_linkpl.constant_part = 6; in init_linktype()
1459 cstate->off_linktype.constant_part = 6; in init_linktype()
1460 cstate->off_linkpl.constant_part = 12; in init_linktype()
1466 cstate->off_linktype.constant_part = 6; in init_linktype()
1467 …cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* not really a network layer but raw IP addres… in init_linktype()
1473 cstate->off_linktype.constant_part = 12; in init_linktype()
1474 cstate->off_linkpl.constant_part = 12; in init_linktype()
1480 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1481 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1487 cstate->off_linktype.constant_part = 12; in init_linktype()
1488 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* L3 proto location dep. on cookie type */ in init_linktype()
1494 cstate->off_linktype.constant_part = 18; in init_linktype()
1495 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1501 cstate->off_linktype.constant_part = 18; in init_linktype()
1502 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1508 cstate->off_linktype.constant_part = 8; in init_linktype()
1509 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1518 cstate->off_linktype.constant_part = 8; in init_linktype()
1519 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1531 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1532 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1544 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1545 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1557 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1558 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1564 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1565 cstate->off_linkpl.constant_part = 4; in init_linktype()
1574 cstate->off_linktype.constant_part = OFFSET_NOT_SET; /* variable, min 15, max 71 steps of 7 */ in init_linktype()
1575 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1581 cstate->off_linktype.constant_part = 1; in init_linktype()
1582 cstate->off_linkpl.constant_part = 24; /* ipnet header length */ in init_linktype()
1588 cstate->off_linkhdr.constant_part = 4; /* Ethernet header is past 4-byte pseudo-header */ in init_linktype()
1589 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in init_linktype()
1590 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+Ethern… in init_linktype()
1596 …cstate->off_linkhdr.constant_part = 12; /* MAC header is past 4-byte pseudo-header, preamble, and … in init_linktype()
1597 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in init_linktype()
1598 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+preamb… in init_linktype()
1610 cstate->off_linktype.constant_part = OFFSET_NOT_SET; in init_linktype()
1611 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1650 s2->s.k = abs_offset->constant_part + offset; in gen_load_absoffsetrel()
1658 s->s.k = abs_offset->constant_part + offset; in gen_load_absoffsetrel()
1728 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + offset; in gen_load_a()
1766 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_loadx_iphdrlen()
1797 s->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_loadx_iphdrlen()
2211 b1 = gen_cmp(cstate, OR_LINKHDR, cstate->off_linkpl.constant_part, BPF_B, in gen_linux_sll_linktype()
2565 s->s.k = cstate->off_outermostlinkhdr.constant_part; in gen_load_802_11_header_len()
3534 if (cstate->off_linktype.constant_part != OFFSET_NOT_SET) { in gen_linktype()
5836 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 9; in gen_protochain()
5840 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
5849 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 6; in gen_protochain()
5925 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
5933 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 1; in gen_protochain()
5994 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6012 s[i]->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_protochain()
6438 if (cstate->off_linktype.constant_part == OFFSET_NOT_SET && in gen_scode()
6998 tmp->s.k = cstate->off_linkhdr.constant_part; in gen_load()
7045 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_load()
7102 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl; in gen_load()
7164 tmp->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 40; in gen_load()
8148 cstate->off_linkpl.constant_part += 4; in gen_vlan_no_bpf_extensions()
8149 cstate->off_linktype.constant_part += 4; in gen_vlan_no_bpf_extensions()
8337 cstate->off_linkhdr.constant_part == in gen_vlan()
8338 cstate->off_outermostlinkhdr.constant_part) { in gen_vlan()
8507 cstate->off_linkpl.constant_part + cstate->off_nl + 6, /* 6 bytes past the PPPoE header */ in gen_pppoes()
8511 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 2; in gen_pppoes()
8633 s->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 8; in gen_geneve_offsets()
8647 cstate->off_linktype.constant_part = 0; in gen_geneve_offsets()
8744 cstate->off_linkpl.constant_part = 0; in gen_geneve_offsets()
8947 cstate->off_linktype.constant_part = cstate->off_linkhdr.constant_part + 12; in gen_atmtype_abbrev()
8948 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* Ethernet */ in gen_atmtype_abbrev()