Lines Matching refs:ip_hdr
450 pkey = skb ? ip_hdr(skb)->daddr : *((__be32 *) daddr); in ipv4_neigh_lookup()
557 const struct iphdr *iph = ip_hdr(skb); in build_skb_flow_key()
761 __be32 old_gw = ip_hdr(skb)->saddr; in __ip_do_redirect()
913 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, vif, 1); in ip_rt_send_redirect()
916 rt_nexthop(rt, ip_hdr(skb)->daddr)); in ip_rt_send_redirect()
943 __be32 gw = rt_nexthop(rt, ip_hdr(skb)->daddr); in ip_rt_send_redirect()
952 &ip_hdr(skb)->saddr, inet_iif(skb), in ip_rt_send_redirect()
953 &ip_hdr(skb)->daddr, &gw); in ip_rt_send_redirect()
1013 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, in ip_error()
1232 ip_hdr(skb)->version != 4 || ip_hdr(skb)->ihl < 5) in ipv4_send_dest_unreach()
1236 if (ip_hdr(skb)->ihl > 5) { in ipv4_send_dest_unreach()
1237 if (!pskb_network_may_pull(skb, ip_hdr(skb)->ihl * 4)) in ipv4_send_dest_unreach()
1239 opt.optlen = ip_hdr(skb)->ihl * 4 - sizeof(struct iphdr); in ipv4_send_dest_unreach()
1266 __func__, &ip_hdr(skb)->saddr, &ip_hdr(skb)->daddr, in ip_rt_bug()
1287 src = ip_hdr(skb)->saddr; in ip_rt_get_source()
1290 struct iphdr *iph = ip_hdr(skb); in ip_rt_get_source()
1735 ip_hdr(skb)->protocol != IPPROTO_IGMP) in ip_mc_validate_source()
1910 const struct iphdr *outer_iph = ip_hdr(skb); in ip_multipath_l3_keys()
2315 ip_hdr(skb)->protocol); in ip_route_input_rcu()
2324 ip_hdr(skb)->protocol); in ip_route_input_rcu()