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/ip6mr.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/ip6mr.c')
-rw-r--r-- | net/ipv6/ip6mr.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 618f67ccda31..61a8be3ac4e4 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -618,8 +618,8 @@ static int pim6_rcv(struct sk_buff *skb) | |||
618 | struct net *net = dev_net(skb->dev); | 618 | struct net *net = dev_net(skb->dev); |
619 | struct mr6_table *mrt; | 619 | struct mr6_table *mrt; |
620 | struct flowi fl = { | 620 | struct flowi fl = { |
621 | .iif = skb->dev->ifindex, | 621 | .flowi_iif = skb->dev->ifindex, |
622 | .mark = skb->mark, | 622 | .flowi_mark = skb->mark, |
623 | }; | 623 | }; |
624 | int reg_vif_num; | 624 | int reg_vif_num; |
625 | 625 | ||
@@ -688,9 +688,9 @@ static netdev_tx_t reg_vif_xmit(struct sk_buff *skb, | |||
688 | struct net *net = dev_net(dev); | 688 | struct net *net = dev_net(dev); |
689 | struct mr6_table *mrt; | 689 | struct mr6_table *mrt; |
690 | struct flowi fl = { | 690 | struct flowi fl = { |
691 | .oif = dev->ifindex, | 691 | .flowi_oif = dev->ifindex, |
692 | .iif = skb->skb_iif, | 692 | .flowi_iif = skb->skb_iif, |
693 | .mark = skb->mark, | 693 | .flowi_mark = skb->mark, |
694 | }; | 694 | }; |
695 | int err; | 695 | int err; |
696 | 696 | ||
@@ -1548,9 +1548,9 @@ struct sock *mroute6_socket(struct net *net, struct sk_buff *skb) | |||
1548 | { | 1548 | { |
1549 | struct mr6_table *mrt; | 1549 | struct mr6_table *mrt; |
1550 | struct flowi fl = { | 1550 | struct flowi fl = { |
1551 | .iif = skb->skb_iif, | 1551 | .flowi_iif = skb->skb_iif, |
1552 | .oif = skb->dev->ifindex, | 1552 | .flowi_oif = skb->dev->ifindex, |
1553 | .mark = skb->mark, | 1553 | .flowi_mark= skb->mark, |
1554 | }; | 1554 | }; |
1555 | 1555 | ||
1556 | if (ip6mr_fib_lookup(net, &fl, &mrt) < 0) | 1556 | if (ip6mr_fib_lookup(net, &fl, &mrt) < 0) |
@@ -1916,7 +1916,7 @@ static int ip6mr_forward2(struct net *net, struct mr6_table *mrt, | |||
1916 | ipv6h = ipv6_hdr(skb); | 1916 | ipv6h = ipv6_hdr(skb); |
1917 | 1917 | ||
1918 | fl = (struct flowi) { | 1918 | fl = (struct flowi) { |
1919 | .oif = vif->link, | 1919 | .flowi_oif = vif->link, |
1920 | .fl6_dst = ipv6h->daddr, | 1920 | .fl6_dst = ipv6h->daddr, |
1921 | }; | 1921 | }; |
1922 | 1922 | ||
@@ -2044,8 +2044,8 @@ int ip6_mr_input(struct sk_buff *skb) | |||
2044 | struct net *net = dev_net(skb->dev); | 2044 | struct net *net = dev_net(skb->dev); |
2045 | struct mr6_table *mrt; | 2045 | struct mr6_table *mrt; |
2046 | struct flowi fl = { | 2046 | struct flowi fl = { |
2047 | .iif = skb->dev->ifindex, | 2047 | .flowi_iif = skb->dev->ifindex, |
2048 | .mark = skb->mark, | 2048 | .flowi_mark= skb->mark, |
2049 | }; | 2049 | }; |
2050 | int err; | 2050 | int err; |
2051 | 2051 | ||