diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-06-11 02:31:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-11 02:31:35 -0400 |
commit | d8d1f30b95a635dbd610dcc5eb641aca8f4768cf (patch) | |
tree | 71424d82a96facd5fcf05cc769ef2ba52b584aeb /net/ipv4/arp.c | |
parent | 592fcb9dfafaa02dd0edc207bf5d3a0ee7a1f8df (diff) |
net-next: remove useless union keyword
remove useless union keyword in rtable, rt6_info and dn_route.
Since there is only one member in a union, the union keyword isn't useful.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 917d2d66162..cf78f41830c 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -427,7 +427,7 @@ static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev) | |||
427 | 427 | ||
428 | if (ip_route_output_key(net, &rt, &fl) < 0) | 428 | if (ip_route_output_key(net, &rt, &fl) < 0) |
429 | return 1; | 429 | return 1; |
430 | if (rt->u.dst.dev != dev) { | 430 | if (rt->dst.dev != dev) { |
431 | NET_INC_STATS_BH(net, LINUX_MIB_ARPFILTER); | 431 | NET_INC_STATS_BH(net, LINUX_MIB_ARPFILTER); |
432 | flag = 1; | 432 | flag = 1; |
433 | } | 433 | } |
@@ -532,7 +532,7 @@ static inline int arp_fwd_proxy(struct in_device *in_dev, | |||
532 | struct in_device *out_dev; | 532 | struct in_device *out_dev; |
533 | int imi, omi = -1; | 533 | int imi, omi = -1; |
534 | 534 | ||
535 | if (rt->u.dst.dev == dev) | 535 | if (rt->dst.dev == dev) |
536 | return 0; | 536 | return 0; |
537 | 537 | ||
538 | if (!IN_DEV_PROXY_ARP(in_dev)) | 538 | if (!IN_DEV_PROXY_ARP(in_dev)) |
@@ -545,7 +545,7 @@ static inline int arp_fwd_proxy(struct in_device *in_dev, | |||
545 | 545 | ||
546 | /* place to check for proxy_arp for routes */ | 546 | /* place to check for proxy_arp for routes */ |
547 | 547 | ||
548 | out_dev = __in_dev_get_rcu(rt->u.dst.dev); | 548 | out_dev = __in_dev_get_rcu(rt->dst.dev); |
549 | if (out_dev) | 549 | if (out_dev) |
550 | omi = IN_DEV_MEDIUM_ID(out_dev); | 550 | omi = IN_DEV_MEDIUM_ID(out_dev); |
551 | 551 | ||
@@ -576,7 +576,7 @@ static inline int arp_fwd_pvlan(struct in_device *in_dev, | |||
576 | __be32 sip, __be32 tip) | 576 | __be32 sip, __be32 tip) |
577 | { | 577 | { |
578 | /* Private VLAN is only concerned about the same ethernet segment */ | 578 | /* Private VLAN is only concerned about the same ethernet segment */ |
579 | if (rt->u.dst.dev != dev) | 579 | if (rt->dst.dev != dev) |
580 | return 0; | 580 | return 0; |
581 | 581 | ||
582 | /* Don't reply on self probes (often done by windowz boxes)*/ | 582 | /* Don't reply on self probes (often done by windowz boxes)*/ |
@@ -1042,7 +1042,7 @@ static int arp_req_set(struct net *net, struct arpreq *r, | |||
1042 | struct rtable * rt; | 1042 | struct rtable * rt; |
1043 | if ((err = ip_route_output_key(net, &rt, &fl)) != 0) | 1043 | if ((err = ip_route_output_key(net, &rt, &fl)) != 0) |
1044 | return err; | 1044 | return err; |
1045 | dev = rt->u.dst.dev; | 1045 | dev = rt->dst.dev; |
1046 | ip_rt_put(rt); | 1046 | ip_rt_put(rt); |
1047 | if (!dev) | 1047 | if (!dev) |
1048 | return -EINVAL; | 1048 | return -EINVAL; |
@@ -1149,7 +1149,7 @@ static int arp_req_delete(struct net *net, struct arpreq *r, | |||
1149 | struct rtable * rt; | 1149 | struct rtable * rt; |
1150 | if ((err = ip_route_output_key(net, &rt, &fl)) != 0) | 1150 | if ((err = ip_route_output_key(net, &rt, &fl)) != 0) |
1151 | return err; | 1151 | return err; |
1152 | dev = rt->u.dst.dev; | 1152 | dev = rt->dst.dev; |
1153 | ip_rt_put(rt); | 1153 | ip_rt_put(rt); |
1154 | if (!dev) | 1154 | if (!dev) |
1155 | return -EINVAL; | 1155 | return -EINVAL; |