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  linux-hardening  linux-cve-announce  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]
Message-ID: <20131228112147.67756b9c@nehalam.linuxnetplumber.net>
Date:	Sat, 28 Dec 2013 11:21:47 -0800
From:	Stephen Hemminger <stephen@...workplumber.org>
To:	Jiri Pirko <jiri@...nulli.us>
Cc:	netdev@...r.kernel.org, davem@...emloft.net, kuznet@....inr.ac.ru,
	jmorris@...ei.org, yoshfuji@...ux-ipv6.org, kaber@...sh.net,
	thaller@...hat.com, hannes@...essinduktion.org,
	vyasevich@...il.com, dcbw@...hat.com, David.Laight@...LAB.COM
Subject: Re: [patch iproute2 1/2] add support for extended ifa_flags

Was about to apply this but found something while reviewing.

On Fri,  6 Dec 2013 09:46:26 +0100
Jiri Pirko <jiri@...nulli.us> wrote:

> +	req.ifa.ifa_flags = ifa_flags & 0xff;
> +	addattr32(&req.n, sizeof(req), IFA_FLAGS, ifa_flags);

I don't like the mystery mask (0xff) here. I think this was to mask
off private flags. Perhaps a manifest constant should be added to if.h
lie IFA_F_RDONLY_MASK??

Plus from an API point of view, hard coding a value (even in #define)
seems like a problem when future values get added.

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ