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>
This commit is contained in:
parent
3fbca4a2fe
commit
06e3041164
|
@ -2427,11 +2427,7 @@ static void mod_cur_headers(struct pktgen_dev *pkt_dev)
|
||||||
}
|
}
|
||||||
} else { /* IPV6 * */
|
} else { /* IPV6 * */
|
||||||
|
|
||||||
if (pkt_dev->min_in6_daddr.s6_addr32[0] == 0 &&
|
if (!ipv6_addr_any(&pkt_dev->min_in6_daddr)) {
|
||||||
pkt_dev->min_in6_daddr.s6_addr32[1] == 0 &&
|
|
||||||
pkt_dev->min_in6_daddr.s6_addr32[2] == 0 &&
|
|
||||||
pkt_dev->min_in6_daddr.s6_addr32[3] == 0) ;
|
|
||||||
else {
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Only random destinations yet */
|
/* Only random destinations yet */
|
||||||
|
|
Loading…
Reference in New Issue