Home
last modified time | relevance | path

Searched refs:skb_network_header (Results 1 – 25 of 147) sorted by relevance

123456

/Linux-v6.6/net/ieee802154/6lowpan/
Drx.c68 if (!(lowpan_is_frag1(*skb_network_header(skb)) || in lowpan_rx_h_frag()
69 lowpan_is_fragn(*skb_network_header(skb)))) in lowpan_rx_h_frag()
72 ret = lowpan_frag_rcv(skb, *skb_network_header(skb) & in lowpan_rx_h_frag()
97 if (!lowpan_is_iphc(*skb_network_header(skb))) in lowpan_rx_h_iphc()
114 if (!lowpan_is_ipv6(*skb_network_header(skb))) in lowpan_rx_h_ipv6()
129 if (!lowpan_is_esc(*skb_network_header(skb))) in lowpan_rx_h_esc()
145 if (!lowpan_is_hc1(*skb_network_header(skb))) in lowpan_rx_h_hc1()
161 if (!lowpan_is_dff(*skb_network_header(skb))) in lowpan_rx_h_dff()
177 if (!lowpan_is_bc0(*skb_network_header(skb))) in lowpan_rx_h_bc0()
193 if (!lowpan_is_mesh(*skb_network_header(skb))) in lowpan_rx_h_mesh()
[all …]
/Linux-v6.6/net/ncsi/
Dncsi-rsp.c33 h = (struct ncsi_rsp_pkt_hdr *)skb_network_header(nr->rsp); in ncsi_validate_rsp_pkt()
84 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_cis()
107 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_sp()
132 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_dp()
156 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_ec()
183 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_dc()
205 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_rc()
227 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_ecnt()
249 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_dcnt()
272 rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp); in ncsi_rsp_handler_ae()
[all …]
/Linux-v6.6/net/netfilter/
Dnf_flow_table_ip.c30 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check()
44 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp()
53 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp()
184 iph = (struct iphdr *)(skb_network_header(skb) + ctx->offset); in nf_flow_tuple_ip()
219 ports = (struct flow_ports *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()
226 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()
233 iph = (struct iphdr *)(skb_network_header(skb) + ctx->offset); in nf_flow_tuple_ip()
378 iph = (struct iphdr *)(skb_network_header(skb) + ctx->offset); in nf_flow_offload_forward()
477 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ipv6_tcp()
488 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ipv6_udp()
[all …]
Dnf_nat_helper.c35 data = skb_network_header(skb) + dataoff; in mangle_contents()
40 skb_tail_pointer(skb) - (skb_network_header(skb) + dataoff + in mangle_contents()
Dnf_flow_table_core.c451 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_tcp()
460 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_udp()
489 hdr = (void *)(skb_network_header(skb) + thoff); in nf_flow_snat_port()
515 hdr = (void *)(skb_network_header(skb) + thoff); in nf_flow_dnat_port()
/Linux-v6.6/net/ipv6/
Dexthdrs.c78 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
118 const unsigned char *nh = skb_network_header(skb); in ip6_parse_tlv()
243 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + optoff); in ipv6_dest_hao()
271 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + in ipv6_dest_hao()
400 skb_postpull_rcsum(skb, skb_network_header(skb), in ipv6_srh_rcv()
420 opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb); in ipv6_srh_rcv()
429 skb_network_header(skb))); in ipv6_srh_rcv()
511 skb_postpull_rcsum(skb, skb_network_header(skb), in ipv6_rpl_srh_rcv()
530 opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb); in ipv6_rpl_srh_rcv()
550 skb_network_header(skb))); in ipv6_rpl_srh_rcv()
[all …]
Dxfrm6_input.c44 int nhlen = skb->data - skb_network_header(skb); in xfrm6_transport_finish()
46 skb_network_header(skb)[IP6CB(skb)->nhoff] = in xfrm6_transport_finish()
56 skb_postpush_rcsum(skb, skb_network_header(skb), nhlen); in xfrm6_transport_finish()
168 return xfrm6_rcv_spi(skb, skb_network_header(skb)[IP6CB(skb)->nhoff], in xfrm6_rcv_tnl()
Dip6_icmp.c69 if (unlikely(!skb_in || skb_network_header(skb_in) < skb_in->head || in icmpv6_ndo_send()
70 (skb_network_header(skb_in) + sizeof(struct ipv6hdr)) > in icmpv6_ndo_send()
Dreassembly.c130 *prob_offset = (u8 *)&fhdr->frag_off - skb_network_header(skb); in ip6_frag_queue()
140 const unsigned char *nh = skb_network_header(skb); in ip6_frag_queue()
275 payload_len = ((skb->data - skb_network_header(skb)) - in ip6_frag_reasm()
284 skb_network_header(skb)[nhoff] = skb_transport_header(skb)[0]; in ip6_frag_reasm()
303 skb_postpush_rcsum(skb, skb_network_header(skb), in ip6_frag_reasm()
358 IP6CB(skb)->nhoff = (u8 *)fhdr - skb_network_header(skb); in ipv6_frag_rcv()
Doutput_core.c62 skb_network_header(skb); in ip6_find_1stfragopt()
91 exthdr = (struct ipv6_opt_hdr *)(skb_network_header(skb) + in ip6_find_1stfragopt()
Dexthdrs_core.c118 const unsigned char *nh = skb_network_header(skb); in ipv6_find_tlv()
119 int packet_len = skb_tail_pointer(skb) - skb_network_header(skb); in ipv6_find_tlv()
Dudp_offload.c92 unfrag_len = (skb_network_header(skb) - skb_mac_header(skb)) + in udp6_ufo_fragment()
101 fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen); in udp6_ufo_fragment()
Dip6_output.c413 if (!pskb_may_pull(skb, (skb_network_header(skb) + in ip6_forward_proxy_check()
417 icmp6 = (struct icmp6hdr *)(skb_network_header(skb) + offset); in ip6_forward_proxy_check()
690 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init()
706 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init()
734 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare()
798 fh = (struct frag_hdr *)(skb_network_header(frag) + state->hlen); in ip6_frag_next()
812 skb_copy_from_linear_data(skb, skb_network_header(frag), state->hlen); in ip6_frag_next()
814 fragnexthdr_offset = skb_network_header(frag); in ip6_frag_next()
815 fragnexthdr_offset += prevhdr - skb_network_header(skb); in ip6_frag_next()
864 nexthdr_offset = prevhdr - skb_network_header(skb); in ip6_fragment()
[all …]
/Linux-v6.6/include/net/
Dinet_ecn.h176 if (skb_network_header(skb) + sizeof(struct iphdr) <= in INET_ECN_set_ce()
182 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ce()
212 if (skb_network_header(skb) + sizeof(struct iphdr) <= in INET_ECN_set_ect1()
218 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ect1()
Dmpls.h27 return (struct mpls_shim_hdr *)skb_network_header(skb); in mpls_hdr()
/Linux-v6.6/net/ipv6/ila/
Dila_common.c85 (skb_network_header(skb) + nhoff); in ila_csum_adjust_transport()
95 (skb_network_header(skb) + nhoff); in ila_csum_adjust_transport()
110 (skb_network_header(skb) + nhoff); in ila_csum_adjust_transport()
/Linux-v6.6/net/sched/
Dact_nat.c187 tcph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
200 udph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
216 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
225 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
239 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
Dem_u32.c21 const unsigned char *ptr = skb_network_header(skb); in em_u32_match()
/Linux-v6.6/net/rxrpc/
Dpeer_event.c52 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_local_rcu()
57 skb_network_header(skb) + serr->addr_offset + 12, in rxrpc_lookup_peer_local_rcu()
73 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_local_rcu()
81 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_local_rcu()
/Linux-v6.6/net/ipv4/
Dip_options.c47 unsigned char *iph = skb_network_header(skb); in ip_options_build()
89 sptr = skb_network_header(skb); in __ip_options_echo()
197 unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); in ip_options_fragment()
543 unsigned char *raw = skb_network_header(skb); in ip_forward_options()
591 unsigned char *optptr = skb_network_header(skb) + opt->srr; in ip_options_rcv_srr()
/Linux-v6.6/include/linux/
Dif_arp.h27 return (struct arphdr *)skb_network_header(skb); in arp_hdr()
Dip.h21 return (struct iphdr *)skb_network_header(skb); in ip_hdr()
Dif_pppox.h21 return (struct pppoe_hdr *)skb_network_header(skb); in pppoe_hdr()
/Linux-v6.6/net/ipv6/netfilter/
Dnf_conntrack_reasm.c194 const unsigned char *nh = skb_network_header(skb); in nf_ct_frag6_queue()
330 payload_len = ((skb->data - skb_network_header(skb)) - in nf_ct_frag6_reasm()
341 skb_network_header(skb)[fq->nhoffset] = skb_transport_header(skb)[0]; in nf_ct_frag6_reasm()
360 skb->csum = csum_partial(skb_network_header(skb), in nf_ct_frag6_reasm()
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_fcoe.c43 struct fcoe_hdr *fcoeh = (struct fcoe_hdr *)skb_network_header(skb); in cxgb_fcoe_sof_eof_supported()

123456