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/ipv6/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/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 55665956b3a8..9e123e08b9b7 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -235,7 +235,7 @@ static int icmpv6_push_pending_frames(struct sock *sk, struct flowi *fl, struct | |||
235 | sizeof(struct icmp6hdr), skb->csum); | 235 | sizeof(struct icmp6hdr), skb->csum); |
236 | icmp6h->icmp6_cksum = csum_ipv6_magic(&fl->fl6_src, | 236 | icmp6h->icmp6_cksum = csum_ipv6_magic(&fl->fl6_src, |
237 | &fl->fl6_dst, | 237 | &fl->fl6_dst, |
238 | len, fl->proto, | 238 | len, fl->flowi_proto, |
239 | skb->csum); | 239 | skb->csum); |
240 | } else { | 240 | } else { |
241 | __wsum tmp_csum = 0; | 241 | __wsum tmp_csum = 0; |
@@ -248,7 +248,7 @@ static int icmpv6_push_pending_frames(struct sock *sk, struct flowi *fl, struct | |||
248 | sizeof(struct icmp6hdr), tmp_csum); | 248 | sizeof(struct icmp6hdr), tmp_csum); |
249 | icmp6h->icmp6_cksum = csum_ipv6_magic(&fl->fl6_src, | 249 | icmp6h->icmp6_cksum = csum_ipv6_magic(&fl->fl6_src, |
250 | &fl->fl6_dst, | 250 | &fl->fl6_dst, |
251 | len, fl->proto, | 251 | len, fl->flowi_proto, |
252 | tmp_csum); | 252 | tmp_csum); |
253 | } | 253 | } |
254 | ip6_push_pending_frames(sk); | 254 | ip6_push_pending_frames(sk); |
@@ -443,11 +443,11 @@ void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) | |||
443 | mip6_addr_swap(skb); | 443 | mip6_addr_swap(skb); |
444 | 444 | ||
445 | memset(&fl, 0, sizeof(fl)); | 445 | memset(&fl, 0, sizeof(fl)); |
446 | fl.proto = IPPROTO_ICMPV6; | 446 | fl.flowi_proto = IPPROTO_ICMPV6; |
447 | ipv6_addr_copy(&fl.fl6_dst, &hdr->saddr); | 447 | ipv6_addr_copy(&fl.fl6_dst, &hdr->saddr); |
448 | if (saddr) | 448 | if (saddr) |
449 | ipv6_addr_copy(&fl.fl6_src, saddr); | 449 | ipv6_addr_copy(&fl.fl6_src, saddr); |
450 | fl.oif = iif; | 450 | fl.flowi_oif = iif; |
451 | fl.fl_icmp_type = type; | 451 | fl.fl_icmp_type = type; |
452 | fl.fl_icmp_code = code; | 452 | fl.fl_icmp_code = code; |
453 | security_skb_classify_flow(skb, &fl); | 453 | security_skb_classify_flow(skb, &fl); |
@@ -465,8 +465,8 @@ void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) | |||
465 | tmp_hdr.icmp6_cksum = 0; | 465 | tmp_hdr.icmp6_cksum = 0; |
466 | tmp_hdr.icmp6_pointer = htonl(info); | 466 | tmp_hdr.icmp6_pointer = htonl(info); |
467 | 467 | ||
468 | if (!fl.oif && ipv6_addr_is_multicast(&fl.fl6_dst)) | 468 | if (!fl.flowi_oif && ipv6_addr_is_multicast(&fl.fl6_dst)) |
469 | fl.oif = np->mcast_oif; | 469 | fl.flowi_oif = np->mcast_oif; |
470 | 470 | ||
471 | dst = icmpv6_route_lookup(net, skb, sk, &fl); | 471 | dst = icmpv6_route_lookup(net, skb, sk, &fl); |
472 | if (IS_ERR(dst)) | 472 | if (IS_ERR(dst)) |
@@ -539,11 +539,11 @@ static void icmpv6_echo_reply(struct sk_buff *skb) | |||
539 | tmp_hdr.icmp6_type = ICMPV6_ECHO_REPLY; | 539 | tmp_hdr.icmp6_type = ICMPV6_ECHO_REPLY; |
540 | 540 | ||
541 | memset(&fl, 0, sizeof(fl)); | 541 | memset(&fl, 0, sizeof(fl)); |
542 | fl.proto = IPPROTO_ICMPV6; | 542 | fl.flowi_proto = IPPROTO_ICMPV6; |
543 | ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr); | 543 | ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr); |
544 | if (saddr) | 544 | if (saddr) |
545 | ipv6_addr_copy(&fl.fl6_src, saddr); | 545 | ipv6_addr_copy(&fl.fl6_src, saddr); |
546 | fl.oif = skb->dev->ifindex; | 546 | fl.flowi_oif = skb->dev->ifindex; |
547 | fl.fl_icmp_type = ICMPV6_ECHO_REPLY; | 547 | fl.fl_icmp_type = ICMPV6_ECHO_REPLY; |
548 | security_skb_classify_flow(skb, &fl); | 548 | security_skb_classify_flow(skb, &fl); |
549 | 549 | ||
@@ -552,8 +552,8 @@ static void icmpv6_echo_reply(struct sk_buff *skb) | |||
552 | return; | 552 | return; |
553 | np = inet6_sk(sk); | 553 | np = inet6_sk(sk); |
554 | 554 | ||
555 | if (!fl.oif && ipv6_addr_is_multicast(&fl.fl6_dst)) | 555 | if (!fl.flowi_oif && ipv6_addr_is_multicast(&fl.fl6_dst)) |
556 | fl.oif = np->mcast_oif; | 556 | fl.flowi_oif = np->mcast_oif; |
557 | 557 | ||
558 | err = ip6_dst_lookup(sk, &dst, &fl); | 558 | err = ip6_dst_lookup(sk, &dst, &fl); |
559 | if (err) | 559 | if (err) |
@@ -793,10 +793,10 @@ void icmpv6_flow_init(struct sock *sk, struct flowi *fl, | |||
793 | memset(fl, 0, sizeof(*fl)); | 793 | memset(fl, 0, sizeof(*fl)); |
794 | ipv6_addr_copy(&fl->fl6_src, saddr); | 794 | ipv6_addr_copy(&fl->fl6_src, saddr); |
795 | ipv6_addr_copy(&fl->fl6_dst, daddr); | 795 | ipv6_addr_copy(&fl->fl6_dst, daddr); |
796 | fl->proto = IPPROTO_ICMPV6; | 796 | fl->flowi_proto = IPPROTO_ICMPV6; |
797 | fl->fl_icmp_type = type; | 797 | fl->fl_icmp_type = type; |
798 | fl->fl_icmp_code = 0; | 798 | fl->fl_icmp_code = 0; |
799 | fl->oif = oif; | 799 | fl->flowi_oif = oif; |
800 | security_sk_classify_flow(sk, fl); | 800 | security_sk_classify_flow(sk, fl); |
801 | } | 801 | } |
802 | 802 | ||