Lines Matching defs:iph
483 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs)
492 hash = siphash_3u32((__force u32)iph->daddr,
493 (__force u32)iph->saddr,
494 iph->protocol,
497 iph->id = htons(id);
511 const struct sock *sk, const struct iphdr *iph,
527 prot, flow_flags, iph->daddr, iph->saddr, 0, 0,
535 const struct iphdr *iph = ip_hdr(skb);
537 u8 prot = iph->protocol;
539 __u8 tos = iph->tos;
541 __build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0);
810 const struct iphdr *iph = (const struct iphdr *) skb->data;
811 __be32 daddr = iph->daddr;
812 __be32 saddr = iph->saddr;
827 const struct iphdr *iph = (const struct iphdr *) skb->data;
830 u8 prot = iph->protocol;
832 __u8 tos = iph->tos;
836 __build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0);
1076 const struct iphdr *iph = (const struct iphdr *)skb->data;
1081 __build_flow_key(net, &fl4, NULL, iph, oif, iph->tos, protocol, mark,
1093 const struct iphdr *iph = (const struct iphdr *)skb->data;
1097 __build_flow_key(sock_net(sk), &fl4, sk, iph, 0, 0, 0, 0, 0);
1111 const struct iphdr *iph = (const struct iphdr *)skb->data;
1130 __build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
1166 const struct iphdr *iph = (const struct iphdr *)skb->data;
1170 __build_flow_key(net, &fl4, NULL, iph, oif, iph->tos, protocol, 0, 0);
1181 const struct iphdr *iph = (const struct iphdr *)skb->data;
1186 __build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
1282 struct iphdr *iph = ip_hdr(skb);
1284 .daddr = iph->daddr,
1285 .saddr = iph->saddr,
1286 .flowi4_tos = RT_TOS(iph->tos),
1297 rt_nexthop(rt, iph->daddr),
3154 struct iphdr *iph;
3166 iph = skb_put(skb, sizeof(struct iphdr));
3167 iph->protocol = ip_proto;
3168 iph->saddr = src;
3169 iph->daddr = dst;
3170 iph->version = 0x4;
3171 iph->frag_off = 0;
3172 iph->ihl = 0x5;
3175 switch (iph->protocol) {