Home
last modified time | relevance | path

Searched refs:ip_hdr (Results 1 – 25 of 131) sorted by relevance

123456

/net/ipv4/
Dip_input.c157 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain()
172 if (ip_is_fragment(ip_hdr(skb))) { in ip_call_ra_chain()
198 int protocol = ip_hdr(skb)->protocol; in ip_local_deliver_finish()
252 if (ip_is_fragment(ip_hdr(skb))) { in ip_local_deliver()
280 iph = ip_hdr(skb); in ip_rcv_options()
316 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish()
327 iph = ip_hdr(skb); in ip_rcv_finish()
400 iph = ip_hdr(skb); in ip_rcv()
426 iph = ip_hdr(skb); in ip_rcv()
447 iph = ip_hdr(skb); in ip_rcv()
Dxfrm4_input.c29 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish()
43 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish()
132 iph = ip_hdr(skb); in xfrm4_udp_encap_rcv()
157 return xfrm4_rcv_spi(skb, ip_hdr(skb)->protocol, 0); in xfrm4_rcv()
Dnetfilter.c22 const struct iphdr *iph = ip_hdr(skb); in ip_route_me_harder()
98 const struct iphdr *iph = ip_hdr(skb); in nf_ip_saveroute()
113 const struct iphdr *iph = ip_hdr(skb); in nf_ip_reroute()
127 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum()
159 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum_partial()
Dtcp_ipv4.c102 return secure_tcp_sequence_number(ip_hdr(skb)->daddr, in tcp_v4_init_sequence()
103 ip_hdr(skb)->saddr, in tcp_v4_init_sequence()
647 &tcp_hashinfo, ip_hdr(skb)->saddr, in tcp_v4_send_reset()
648 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
655 &ip_hdr(skb)->saddr, AF_INET); in tcp_v4_send_reset()
664 &ip_hdr(skb)->saddr, in tcp_v4_send_reset()
678 key, ip_hdr(skb)->saddr, in tcp_v4_send_reset()
679 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
682 arg.csum = csum_tcpudp_nofold(ip_hdr(skb)->daddr, in tcp_v4_send_reset()
683 ip_hdr(skb)->saddr, /* XXX */ in tcp_v4_send_reset()
[all …]
Dxfrm4_output.c28 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df) in xfrm4_tunnel_check_size()
54 XFRM_MODE_SKB_CB(skb)->protocol = ip_hdr(skb)->protocol; in xfrm4_extract_output()
109 hdr = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); in xfrm4_local_error()
Dip_forward.c47 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) in ip_exceeds_mtu()
110 if (ip_hdr(skb)->ttl <= 1) in ip_forward()
133 iph = ip_hdr(skb); in ip_forward()
Dxfrm4_mode_beet.c22 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header()
63 top_iph = ip_hdr(skb); in xfrm4_beet_output()
117 iph = ip_hdr(skb); in xfrm4_beet_input()
Dxfrm4_mode_transport.c23 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_output()
52 ip_hdr(skb)->tot_len = htons(skb->len + ihl); in xfrm4_transport_input()
Dxfrm4_tunnel.c23 return ip_hdr(skb)->protocol; in ipip_xfrm_rcv()
55 return xfrm4_rcv_spi(skb, IPPROTO_IPIP, ip_hdr(skb)->saddr); in xfrm_tunnel_rcv()
Droute.c459 pkey = &ip_hdr(skb)->daddr; in ipv4_neigh_lookup()
544 const struct iphdr *iph = ip_hdr(skb); in build_skb_flow_key()
749 __be32 old_gw = ip_hdr(skb)->saddr; in __ip_do_redirect()
899 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, vif, 1); in ip_rt_send_redirect()
902 rt_nexthop(rt, ip_hdr(skb)->daddr)); in ip_rt_send_redirect()
929 __be32 gw = rt_nexthop(rt, ip_hdr(skb)->daddr); in ip_rt_send_redirect()
938 &ip_hdr(skb)->saddr, inet_iif(skb), in ip_rt_send_redirect()
939 &ip_hdr(skb)->daddr, &gw); in ip_rt_send_redirect()
990 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, in ip_error()
1206 ip_hdr(skb)->version != 4 || ip_hdr(skb)->ihl < 5) in ipv4_send_dest_unreach()
[all …]
Dsyncookies.c197 const struct iphdr *iph = ip_hdr(skb); in cookie_v4_init_sequence()
321 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
349 sk_rcv_saddr_set(req_to_sk(req), ip_hdr(skb)->daddr); in cookie_v4_check()
350 sk_daddr_set(req_to_sk(req), ip_hdr(skb)->saddr); in cookie_v4_check()
Dip_output.c102 struct iphdr *iph = ip_hdr(skb); in __ip_local_out()
150 iph = ip_hdr(skb); in ip_build_and_send_pkt()
216 nexthop = (__force u32) rt_nexthop(rt, ip_hdr(skb)->daddr); in ip_finish_output2()
341 if (ip_hdr(skb)->ttl == 0) { in ip_mc_output()
446 iph = ip_hdr(skb); in ip_queue_xmit()
512 struct iphdr *iph = ip_hdr(skb); in ip_fragment()
561 iph = ip_hdr(skb); in ip_do_fragment()
632 iph = ip_hdr(frag); in ip_do_fragment()
681 iph = ip_hdr(skb); in ip_do_fragment()
751 iph = ip_hdr(skb2); in ip_do_fragment()
[all …]
Dipmr.c631 if (ip_hdr(skb)->version == 0) { in ipmr_destroy_unres()
917 if (ip_hdr(skb)->version == 0) { in ipmr_cache_resolve()
981 ip_hdr(skb)->ihl = sizeof(struct iphdr) >> 2; in ipmr_cache_report()
982 ip_hdr(skb)->tot_len = htons(ntohs(ip_hdr(pkt)->tot_len) + in ipmr_cache_report()
993 ip_hdr(skb)->protocol = 0; /* Flag to the kernel this is a route add */ in ipmr_cache_report()
1004 ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */ in ipmr_cache_report()
1038 const struct iphdr *iph = ip_hdr(skb); in ipmr_cache_unresolved()
1655 const struct iphdr *old_iph = ip_hdr(skb); in ip_encap()
1660 iph = ip_hdr(skb); in ip_encap()
1699 const struct iphdr *iph = ip_hdr(skb); in ipmr_queue_xmit()
[all …]
/net/ipv4/netfilter/
Dipt_ECN.c31 struct iphdr *iph = ip_hdr(skb); in set_ect_ip()
37 iph = ip_hdr(skb); in set_ect_ip()
66 tcph = (void *)ip_hdr(skb) + ip_hdrlen(skb); in set_ect_tcp()
89 ip_hdr(skb)->protocol == IPPROTO_TCP) in ecn_tg()
Dnf_reject_ipv4.c25 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
49 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put()
73 struct iphdr *niph = ip_hdr(nskb); in nf_reject_ip_tcphdr_put()
117 oiph = ip_hdr(oldskb); in nf_send_reset()
173 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach()
Dnft_chain_route_ipv4.c43 iph = ip_hdr(skb); in nf_route_table_hook()
50 iph = ip_hdr(skb); in nf_route_table_hook()
Dnf_dup_ipv4.c29 const struct iphdr *iph = ip_hdr(skb); in nf_dup_ipv4_route()
86 iph = ip_hdr(skb); in nf_dup_ipv4()
Dnf_defrag_ipv4.c35 ip_send_check(ip_hdr(skb)); in nf_ct_ipv4_gather_frags()
82 if (ip_is_fragment(ip_hdr(skb))) { in ipv4_conntrack_defrag()
Diptable_mangle.c56 iph = ip_hdr(skb); in ipt_mangle_out()
64 iph = ip_hdr(skb); in ipt_mangle_out()
Dipt_SYNPROXY.c84 iph = ip_hdr(skb); in synproxy_send_client_synack()
125 iph = ip_hdr(skb); in synproxy_send_server_syn()
170 iph = ip_hdr(skb); in synproxy_send_server_ack()
208 iph = ip_hdr(skb); in synproxy_send_client_ack()
244 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack()
/net/netfilter/
Dxt_DSCP.c34 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg()
40 ipv4_change_dsfield(ip_hdr(skb), in dscp_tg()
80 struct iphdr *iph = ip_hdr(skb); in tos_tg()
89 iph = ip_hdr(skb); in tos_tg()
Dxt_dscp.c31 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt()
62 return ((ip_hdr(skb)->tos & info->tos_mask) == in tos_mt()
/net/bridge/netfilter/
Dnft_reject_bridge.c99 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nft_reject_br_send_v4_unreach()
108 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nft_reject_br_send_v4_unreach()
111 if (ip_hdr(oldskb)->protocol == IPPROTO_TCP || in nft_reject_br_send_v4_unreach()
112 ip_hdr(oldskb)->protocol == IPPROTO_UDP) in nft_reject_br_send_v4_unreach()
113 proto = ip_hdr(oldskb)->protocol; in nft_reject_br_send_v4_unreach()
/net/dccp/
Dipv4.c382 return secure_dccp_sequence_number(ip_hdr(skb)->daddr, in dccp_v4_init_sequence()
383 ip_hdr(skb)->saddr, in dccp_v4_init_sequence()
419 newinet->mc_ttl = ip_hdr(skb)->ttl; in dccp_v4_request_recv_sock()
457 const struct iphdr *iph = ip_hdr(skb); in dccp_v4_route_skb()
531 rxiph = ip_hdr(rxskb); in dccp_v4_ctl_send_reset()
613 sk_rcv_saddr_set(req_to_sk(req), ip_hdr(skb)->daddr); in dccp_v4_conn_request()
614 sk_daddr_set(req_to_sk(req), ip_hdr(skb)->saddr); in dccp_v4_conn_request()
779 iph = ip_hdr(skb); in dccp_v4_rcv()
/net/netfilter/ipvs/
Dip_vs_core.c698 ip_send_check(ip_hdr(skb)); in ip_vs_gather_frags()
734 struct iphdr *iph = ip_hdr(skb); in ip_vs_nat_icmp()
913 if (ip_is_fragment(ip_hdr(skb))) { in ip_vs_out_icmp()
918 iph = ip_hdr(skb); in ip_vs_out_icmp()
1126 ip_hdr(skb)->saddr = cp->vaddr.ip; in handle_response()
1127 ip_send_check(ip_hdr(skb)); in handle_response()
1232 if (unlikely(ip_is_fragment(ip_hdr(skb)) && !pp->dont_defrag)) { in ip_vs_out()
1412 if (ip_is_fragment(ip_hdr(skb))) { in ip_vs_in_icmp()
1417 iph = ip_hdr(skb); in ip_vs_in_icmp()
1523 &ip_hdr(skb)->saddr, &ip_hdr(skb)->daddr, mtu); in ip_vs_in_icmp()
[all …]

123456