Lines Matching refs:off_linkpl

304 	bpf_abs_offset off_linkpl;  member
1161 cstate->off_linkpl.constant_part = 0; in init_linktype()
1162 cstate->off_linkpl.is_variable = 0; in init_linktype()
1163 cstate->off_linkpl.reg = -1; in init_linktype()
1205 cstate->off_linkpl.constant_part = 6; in init_linktype()
1212 cstate->off_linkpl.constant_part = 8; in init_linktype()
1219 cstate->off_linkpl.constant_part = 14; /* Ethernet header length */ in init_linktype()
1230 cstate->off_linkpl.constant_part = 16; in init_linktype()
1239 cstate->off_linkpl.constant_part = 24; in init_linktype()
1247 cstate->off_linkpl.constant_part = 4; in init_linktype()
1254 cstate->off_linkpl.constant_part = 12; in init_linktype()
1265 cstate->off_linkpl.constant_part = 4; /* skip HDLC-like framing and protocol field */ in init_linktype()
1276 cstate->off_linkpl.constant_part = 8; in init_linktype()
1283 cstate->off_linkpl.constant_part = 24; 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()
1330 cstate->off_linkpl.constant_part = 14; /* Token Ring MAC header length */ in init_linktype()
1363 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1364 cstate->off_linkpl.is_variable = 1; in init_linktype()
1380 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1381 cstate->off_linkpl.is_variable = 1; in init_linktype()
1401 cstate->off_linkpl.constant_part = 0; /* packet begins with LLC header */ in init_linktype()
1417 cstate->off_linkpl.constant_part = cstate->off_payload; /* if LLC-encapsulated */ in init_linktype()
1426 cstate->off_linkpl.constant_part = 0; in init_linktype()
1433 cstate->off_linkpl.constant_part = 16; in init_linktype()
1440 cstate->off_linkpl.constant_part = 20; in init_linktype()
1452 cstate->off_linkpl.constant_part = 0; in init_linktype()
1469 cstate->off_linkpl.constant_part = 16; in init_linktype()
1480 cstate->off_linkpl.constant_part = 0; in init_linktype()
1492 cstate->off_linkpl.constant_part = 0; in init_linktype()
1499 cstate->off_linkpl.constant_part = 18; in init_linktype()
1506 cstate->off_linkpl.constant_part = 44; in init_linktype()
1513 cstate->off_linkpl.constant_part = 0; /* link-layer header is variable-length */ in init_linktype()
1514 cstate->off_linkpl.is_variable = 1; in init_linktype()
1526 cstate->off_linkpl.constant_part = 4; in init_linktype()
1533 cstate->off_linkpl.constant_part = 4; /* in reality variable between 4-8 */ 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()
1557 cstate->off_linkpl.constant_part = 6; in init_linktype()
1564 cstate->off_linkpl.constant_part = 12; in init_linktype()
1571 …cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* not really a network layer but raw IP addres… in init_linktype()
1578 cstate->off_linkpl.constant_part = 12; in init_linktype()
1585 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1592 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; /* L3 proto location dep. on cookie type */ in init_linktype()
1599 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1606 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1613 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1623 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1636 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1649 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1662 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1669 cstate->off_linkpl.constant_part = 4; in init_linktype()
1679 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1686 cstate->off_linkpl.constant_part = 24; /* ipnet header length */ in init_linktype()
1694 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+Ethern… in init_linktype()
1702 …cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* pseudo-header+preamb… in init_linktype()
1715 cstate->off_linkpl.constant_part = OFFSET_NOT_SET; in init_linktype()
1808 s = gen_load_absoffsetrel(cstate, &cstate->off_linkpl, offset, size); in gen_load_a()
1812 s = gen_load_absoffsetrel(cstate, &cstate->off_linkpl, cstate->off_nl - 4 + offset, size); in gen_load_a()
1816 s = gen_load_absoffsetrel(cstate, &cstate->off_linkpl, cstate->off_nl + offset, size); in gen_load_a()
1820 s = gen_load_absoffsetrel(cstate, &cstate->off_linkpl, cstate->off_nl_nosnap + offset, size); in gen_load_a()
1848 s2->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + offset; in gen_load_a()
1853 s = gen_load_absoffsetrel(cstate, &cstate->off_linkpl, cstate->off_nl + 40 + offset, size); in gen_load_a()
1869 s = gen_abs_offset_varpart(cstate, &cstate->off_linkpl); in gen_loadx_iphdrlen()
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()
2358 if (cstate->off_linkpl.reg != -1) { in gen_load_pflog_llprefixlen()
2381 s2->s.k = cstate->off_linkpl.reg; in gen_load_pflog_llprefixlen()
2694 if (cstate->off_linkpl.reg == -1) { in gen_load_802_11_header_len()
2746 s2->s.k = cstate->off_linkpl.reg; in gen_load_802_11_header_len()
2788 s2->s.k = cstate->off_linkpl.reg; in gen_load_802_11_header_len()
2794 s2->s.k = cstate->off_linkpl.reg; in gen_load_802_11_header_len()
2898 s_roundup->s.k = cstate->off_linkpl.reg; in gen_load_802_11_header_len()
2907 s2->s.k = cstate->off_linkpl.reg; in gen_load_802_11_header_len()
2930 if (cstate->off_linkpl.reg != -1 && cstate->off_linkhdr.is_variable && in insert_compute_vloffsets()
2995 if (cstate->off_linkpl.reg == -1) in insert_compute_vloffsets()
2996 cstate->off_linkpl.reg = alloc_reg(cstate); in insert_compute_vloffsets()
3003 s2->s.k = cstate->off_linkpl.reg; in insert_compute_vloffsets()
6124 if (cstate->off_linkpl.is_variable) in gen_protochain()
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()
7701 s = gen_abs_offset_varpart(cstate, &cstate->off_linkpl); 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()
7817 s = gen_abs_offset_varpart(cstate, &cstate->off_linkpl); 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()
9074 gen_vlan_vloffset_add(cstate, &cstate->off_linkpl, 4, &s); in gen_vlan_patch_tpid_test()
9418 PUSH_LINKHDR(cstate, DLT_PPP, cstate->off_linkpl.is_variable, in gen_pppoes()
9419 cstate->off_linkpl.constant_part + cstate->off_nl + 6, /* 6 bytes past the PPPoE header */ in gen_pppoes()
9420 cstate->off_linkpl.reg); in gen_pppoes()
9423 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 2; in gen_pppoes()
9504 s = gen_abs_offset_varpart(cstate, &cstate->off_linkpl); in gen_geneve6()
9548 s->s.k = cstate->off_linkpl.constant_part + cstate->off_nl + 8; in gen_geneve_offsets()
9657 cstate->off_linkpl.reg = alloc_reg(cstate); in gen_geneve_offsets()
9658 cstate->off_linkpl.is_variable = 1; in gen_geneve_offsets()
9659 cstate->off_linkpl.constant_part = 0; in gen_geneve_offsets()
9662 s1->s.k = cstate->off_linkpl.reg; in gen_geneve_offsets()
9725 s1->s.k = cstate->off_linkpl.reg; in gen_geneve_ll_check()
9920 cstate->off_linkpl.constant_part = cstate->off_linkhdr.constant_part + 14; /* Ethernet */ in gen_atmtype_abbrev()