diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 00:29:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:44 -0500 |
commit | 1d28f42c1bd4bb2363d88df74d0128b4da135b4a (patch) | |
tree | cb2e652fe79a2bc307e871bc2d3fa51cc8051e45 /net/ipv4/icmp.c | |
parent | ca116922afa8cc5ad46b00c0a637b1cde5ca478a (diff) |
net: Put flowi_* prefix on AF independent members of struct flowi
I intend to turn struct flowi into a union of AF specific flowi
structs. There will be a common structure that each variant includes
first, much like struct sock_common.
This is the first step to move in that direction.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r-- | net/ipv4/icmp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index 1771ce662548..3fde7f23c70b 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c | |||
@@ -353,10 +353,12 @@ static void icmp_reply(struct icmp_bxm *icmp_param, struct sk_buff *skb) | |||
353 | daddr = icmp_param->replyopts.faddr; | 353 | daddr = icmp_param->replyopts.faddr; |
354 | } | 354 | } |
355 | { | 355 | { |
356 | struct flowi fl = { .fl4_dst= daddr, | 356 | struct flowi fl = { |
357 | .fl4_src = rt->rt_spec_dst, | 357 | .fl4_dst = daddr, |
358 | .fl4_tos = RT_TOS(ip_hdr(skb)->tos), | 358 | .fl4_src = rt->rt_spec_dst, |
359 | .proto = IPPROTO_ICMP }; | 359 | .fl4_tos = RT_TOS(ip_hdr(skb)->tos), |
360 | .flowi_proto = IPPROTO_ICMP, | ||
361 | }; | ||
360 | security_skb_classify_flow(skb, &fl); | 362 | security_skb_classify_flow(skb, &fl); |
361 | rt = ip_route_output_key(net, &fl); | 363 | rt = ip_route_output_key(net, &fl); |
362 | if (IS_ERR(rt)) | 364 | if (IS_ERR(rt)) |
@@ -381,7 +383,7 @@ static struct rtable *icmp_route_lookup(struct net *net, struct sk_buff *skb_in, | |||
381 | param->replyopts.faddr : iph->saddr), | 383 | param->replyopts.faddr : iph->saddr), |
382 | .fl4_src = saddr, | 384 | .fl4_src = saddr, |
383 | .fl4_tos = RT_TOS(tos), | 385 | .fl4_tos = RT_TOS(tos), |
384 | .proto = IPPROTO_ICMP, | 386 | .flowi_proto = IPPROTO_ICMP, |
385 | .fl_icmp_type = type, | 387 | .fl_icmp_type = type, |
386 | .fl_icmp_code = code, | 388 | .fl_icmp_code = code, |
387 | }; | 389 | }; |