Lines Matching defs:iph

515 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs)
524 hash = siphash_3u32((__force u32)iph->daddr,
525 (__force u32)iph->saddr,
526 iph->protocol,
529 iph->id = htons(id);
544 const struct iphdr *iph,
559 iph->daddr, iph->saddr, 0, 0,
567 const struct iphdr *iph = ip_hdr(skb);
569 u8 tos = RT_TOS(iph->tos);
570 u8 prot = iph->protocol;
573 __build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0);
839 const struct iphdr *iph = (const struct iphdr *) skb->data;
840 __be32 daddr = iph->daddr;
841 __be32 saddr = iph->saddr;
856 const struct iphdr *iph = (const struct iphdr *) skb->data;
859 u8 tos = RT_TOS(iph->tos);
860 u8 prot = iph->protocol;
865 __build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0);
1096 const struct iphdr *iph = (const struct iphdr *)skb->data;
1101 __build_flow_key(net, &fl4, NULL, iph, oif,
1102 RT_TOS(iph->tos), protocol, mark, 0);
1113 const struct iphdr *iph = (const struct iphdr *)skb->data;
1117 __build_flow_key(sock_net(sk), &fl4, sk, iph, 0, 0, 0, 0, 0);
1131 const struct iphdr *iph = (const struct iphdr *)skb->data;
1150 __build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
1188 const struct iphdr *iph = (const struct iphdr *)skb->data;
1192 __build_flow_key(net, &fl4, NULL, iph, oif,
1193 RT_TOS(iph->tos), protocol, 0, 0);
1204 const struct iphdr *iph = (const struct iphdr *)skb->data;
1209 __build_flow_key(net, &fl4, sk, iph, 0, 0, 0, 0, 0);
1303 struct iphdr *iph = ip_hdr(skb);
1305 .daddr = iph->daddr,
1306 .saddr = iph->saddr,
1307 .flowi4_tos = RT_TOS(iph->tos),
1318 rt_nexthop(rt, iph->daddr),
3077 struct iphdr *iph;
3089 iph = skb_put(skb, sizeof(struct iphdr));
3090 iph->protocol = ip_proto;
3091 iph->saddr = src;
3092 iph->daddr = dst;
3093 iph->version = 0x4;
3094 iph->frag_off = 0;
3095 iph->ihl = 0x5;
3098 switch (iph->protocol) {