From: Joe Perches Date: Thu, 18 Oct 2012 17:55:31 +0000 (+0000) Subject: pktgen: Use ipv6_addr_any X-Git-Tag: upstream/snapshot3+hdmi~6096^2~623 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06e3041164a1c52d6e8a369af8be3827f428272b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git pktgen: Use ipv6_addr_any Use the standard test for a non-zero ipv6 address. Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index d1dc14c..1d1c216 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) } } else { /* IPV6 * */ - if (pkt_dev->min_in6_daddr.s6_addr32[0] == 0 && - 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 { + if (!ipv6_addr_any(&pkt_dev->min_in6_daddr)) { int i; /* Only random destinations yet */