diff options
author | Joe Perches <joe@perches.com> | 2012-10-18 13:55:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-21 20:37:05 -0400 |
commit | 06e3041164a1c52d6e8a369af8be3827f428272b (patch) | |
tree | 5bb1a5cd7b225ab84c1241486d61b78655f25ec1 /net/core/pktgen.c | |
parent | 3fbca4a2fee75ff89be9c5e44a893f89982873ff (diff) |
pktgen: Use ipv6_addr_any
Use the standard test for a non-zero ipv6 address.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index d1dc14c2aac4..1d1c216ffd9a 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -2427,11 +2427,7 @@ static void mod_cur_headers(struct pktgen_dev *pkt_dev) | |||
2427 | } | 2427 | } |
2428 | } else { /* IPV6 * */ | 2428 | } else { /* IPV6 * */ |
2429 | 2429 | ||
2430 | if (pkt_dev->min_in6_daddr.s6_addr32[0] == 0 && | 2430 | if (!ipv6_addr_any(&pkt_dev->min_in6_daddr)) { |
2431 | pkt_dev->min_in6_daddr.s6_addr32[1] == 0 && | ||
2432 | pkt_dev->min_in6_daddr.s6_addr32[2] == 0 && | ||
2433 | pkt_dev->min_in6_daddr.s6_addr32[3] == 0) ; | ||
2434 | else { | ||
2435 | int i; | 2431 | int i; |
2436 | 2432 | ||
2437 | /* Only random destinations yet */ | 2433 | /* Only random destinations yet */ |