lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 04 Jan 2012 14:43:18 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	nhorman@...driver.com
Cc:	netdev@...r.kernel.org, yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH] ipv6: Check RA for sllao when configuring optimistic
 ipv6 address

From: Neil Horman <nhorman@...driver.com>
Date: Wed,  4 Jan 2012 11:47:23 -0500

> +extern void addrconf_prefix_rcv(struct net_device *dev,
> +				u8 *opt, int len, void *sllao);

You're not going to dereference or inspect 'sllao' otherwise you'd
give it a more appropriate type.  You just care if it was present or
not.

So why not just make 'sllao' a "bool" and the argument passed as the
test "X != NULL"?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists