Home
last modified time | relevance | path

Searched refs:exthdr (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/net/ipv6/
H A Doutput_core.c67 struct ipv6_opt_hdr *exthdr; in ip6_find_1stfragopt() local
91 exthdr = (struct ipv6_opt_hdr *)(skb_network_header(skb) + in ip6_find_1stfragopt()
93 offset += ipv6_optlen(exthdr); in ip6_find_1stfragopt()
96 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt()
H A Dah6.c248 } exthdr = { .iph = iph }; in ipv6_clear_mutable_options() local
249 char *end = exthdr.raw + len; in ipv6_clear_mutable_options()
252 exthdr.iph++; in ipv6_clear_mutable_options()
254 while (exthdr.raw < end) { in ipv6_clear_mutable_options()
258 ipv6_rearrange_destopt(iph, exthdr.opth); in ipv6_clear_mutable_options()
261 if (!zero_out_mutable_opts(exthdr.opth)) { in ipv6_clear_mutable_options()
270 ipv6_rearrange_rthdr(iph, exthdr.rth); in ipv6_clear_mutable_options()
277 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options()
278 exthdr.raw += ipv6_optlen(exthdr.opth); in ipv6_clear_mutable_options()
H A Desp6_offload.c35 struct ipv6_opt_hdr *exthdr; in esp6_nexthdr_esp_offset() local
41 exthdr = (void *)ipv6_hdr + off; in esp6_nexthdr_esp_offset()
42 if (exthdr->nexthdr == NEXTHDR_ESP) in esp6_nexthdr_esp_offset()
45 off += ipv6_optlen(exthdr); in esp6_nexthdr_esp_offset()
/openbmc/linux/drivers/media/pci/saa7164/
H A Dsaa7164-api.c923 struct tmComResExtDevDescrHeader *exthdr; in saa7164_api_dump_subdevs() local
1225 exthdr = (struct tmComResExtDevDescrHeader *)(buf + idx); in saa7164_api_dump_subdevs()
1227 exthdr->unitid); in saa7164_api_dump_subdevs()
1229 exthdr->deviceid); in saa7164_api_dump_subdevs()
1231 exthdr->devicetype); in saa7164_api_dump_subdevs()
1232 if (exthdr->devicetype & 0x1) in saa7164_api_dump_subdevs()
1234 if (exthdr->devicetype & 0x2) in saa7164_api_dump_subdevs()
1236 if (exthdr->devicetype & 0x4) in saa7164_api_dump_subdevs()
1238 if (exthdr->devicetype & 0x8) in saa7164_api_dump_subdevs()
1240 if (exthdr->devicetype & 0x20) in saa7164_api_dump_subdevs()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dcmsg_sender.c71 struct option_cmsg_u32 exthdr; member
178 opt.v6.exthdr.ena = true; in cs_parse_args()
181 opt.v6.exthdr.val = IPV6_HOPOPTS; in cs_parse_args()
184 opt.v6.exthdr.val = IPV6_DSTOPTS; in cs_parse_args()
187 opt.v6.exthdr.val = IPV6_RTHDRDSTOPTS; in cs_parse_args()
297 if (opt.v6.exthdr.ena) { in cs_write_cmsg()
304 cmsg->cmsg_type = opt.v6.exthdr.val; in cs_write_cmsg()
/openbmc/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_tx.c205 u8 *exthdr; in get_inner_l3_l4_type() local
214 exthdr = ip->hdr + sizeof(*ip->v6); in get_inner_l3_l4_type()
216 if (exthdr != l4->hdr) { in get_inner_l3_l4_type()
217 int start = exthdr - skb->data; in get_inner_l3_l4_type()
377 unsigned char *exthdr; in offload_csum() local
382 exthdr = ip.hdr + sizeof(*ip.v6); in offload_csum()
385 if (l4.hdr != exthdr) in offload_csum()
386 ipv6_skip_exthdr(skb, exthdr - skb->data, in offload_csum()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.c292 } exthdr = { in pkt_skip_ipv6_extension_headers() local
299 switch (exthdr.next) { in pkt_skip_ipv6_extension_headers()
309 if (!buf_copy(pkt, &exthdr, sizeof(exthdr))) { in pkt_skip_ipv6_extension_headers()
315 (exthdr.len + 1) * 8 - sizeof(exthdr))) { in pkt_skip_ipv6_extension_headers()
333 *upper_proto = exthdr.next; in pkt_skip_ipv6_extension_headers()
H A Dtest_cls_redirect_dynptr.c197 } exthdr = { in pkt_skip_ipv6_extension_headers() local
203 switch (exthdr.next) { in pkt_skip_ipv6_extension_headers()
213 if (bpf_dynptr_read(&exthdr, sizeof(exthdr), dynptr, *offset, 0)) in pkt_skip_ipv6_extension_headers()
217 *offset += (exthdr.len + 1) * 8; in pkt_skip_ipv6_extension_headers()
233 *upper_proto = exthdr.next; in pkt_skip_ipv6_extension_headers()
/openbmc/linux/net/netfilter/
H A Dnft_exthdr.c707 const struct nft_exthdr *exthdr; in nft_exthdr_reduce() local
714 exthdr = nft_expr_priv(track->regs[priv->dreg].selector); in nft_exthdr_reduce()
715 if (priv->type != exthdr->type || in nft_exthdr_reduce()
716 priv->op != exthdr->op || in nft_exthdr_reduce()
717 priv->flags != exthdr->flags || in nft_exthdr_reduce()
718 priv->offset != exthdr->offset || in nft_exthdr_reduce()
719 priv->len != exthdr->len) { in nft_exthdr_reduce()
/openbmc/openbmc-tools/ipkdbg/
H A DMakefile30 --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
/openbmc/linux/net/xfrm/
H A Dxfrm_output.c93 struct ipv6_opt_hdr *exthdr; in mip6_rthdr_offset() local
129 exthdr = (struct ipv6_opt_hdr *)(skb_network_header(skb) + in mip6_rthdr_offset()
131 offset += ipv6_optlen(exthdr); in mip6_rthdr_offset()
134 *nexthdr = &exthdr->nexthdr; in mip6_rthdr_offset()
H A Dxfrm_policy.c3482 struct ipv6_opt_hdr *exthdr; in decode_session6() local
3503 while (nh + offset + sizeof(*exthdr) < skb->data || in decode_session6()
3504 pskb_may_pull(skb, nh + offset + sizeof(*exthdr) - skb->data)) { in decode_session6()
3506 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in decode_session6()
3515 offset += ipv6_optlen(exthdr); in decode_session6()
3516 nexthdr = exthdr->nexthdr; in decode_session6()
3568 offset += ipv6_optlen(exthdr); in decode_session6()
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c1989 unsigned char *exthdr; in iavf_tx_enable_csum() local
2015 exthdr = ip.hdr + sizeof(*ip.v6); in iavf_tx_enable_csum()
2017 if (l4.hdr != exthdr) in iavf_tx_enable_csum()
2018 ipv6_skip_exthdr(skb, exthdr - skb->data, in iavf_tx_enable_csum()
2089 exthdr = ip.hdr + sizeof(*ip.v6); in iavf_tx_enable_csum()
2091 if (l4.hdr != exthdr) in iavf_tx_enable_csum()
2092 ipv6_skip_exthdr(skb, exthdr - skb->data, in iavf_tx_enable_csum()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx.c1768 unsigned char *exthdr; in ice_tx_csum() local
1811 exthdr = ip.hdr + sizeof(*ip.v6); in ice_tx_csum()
1813 ret = ipv6_skip_exthdr(skb, exthdr - skb->data, in ice_tx_csum()
1892 exthdr = ip.hdr + sizeof(*ip.v6); in ice_tx_csum()
1894 if (l4.hdr != exthdr) in ice_tx_csum()
1895 ipv6_skip_exthdr(skb, exthdr - skb->data, &l4_proto, in ice_tx_csum()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c3312 unsigned char *exthdr; in i40e_tx_enable_csum() local
3356 exthdr = ip.hdr + sizeof(*ip.v6); in i40e_tx_enable_csum()
3358 ret = ipv6_skip_exthdr(skb, exthdr - skb->data, in i40e_tx_enable_csum()
3431 exthdr = ip.hdr + sizeof(*ip.v6); in i40e_tx_enable_csum()
3433 if (l4.hdr != exthdr) in i40e_tx_enable_csum()
3434 ipv6_skip_exthdr(skb, exthdr - skb->data, in i40e_tx_enable_csum()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c1244 unsigned char *exthdr; in hns3_get_l4_protocol() local
1253 exthdr = l3.hdr + sizeof(*l3.v6); in hns3_get_l4_protocol()
1255 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
1256 ipv6_skip_exthdr(skb, exthdr - skb->data, in hns3_get_l4_protocol()
1277 exthdr = l3.hdr + sizeof(*l3.v6); in hns3_get_l4_protocol()
1279 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
1280 ipv6_skip_exthdr(skb, exthdr - skb->data, in hns3_get_l4_protocol()
/openbmc/linux/Documentation/networking/
H A Drds.rst445 If the rcvr is not mprds-capable, the exthdr in the ping will be