Commit 06e3041164a1c52d6e8a369af8be3827f428272b
Committed by
David S. Miller
1 parent
3fbca4a2fe
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff
net/core/pktgen.c
... | ... | @@ -2427,11 +2427,7 @@ |
2427 | 2427 | } |
2428 | 2428 | } else { /* IPV6 * */ |
2429 | 2429 | |
2430 | - if (pkt_dev->min_in6_daddr.s6_addr32[0] == 0 && | |
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 { | |
2430 | + if (!ipv6_addr_any(&pkt_dev->min_in6_daddr)) { | |
2435 | 2431 | int i; |
2436 | 2432 | |
2437 | 2433 | /* Only random destinations yet */ |