RE: [PATCH iproute2] ip: change flag names to an array

2017-07-10 Thread David Laight
From: Stephen Hemminger > Sent: 07 July 2017 16:40 > For the most of the address flags, use a table of bit values rather > than open coding every value. This allows for easier inevitable > expansion of flags. > > This also fixes the missing stable-privacy flag. > > Signed-off-by: Stephen Hemmin

Re: [PATCH iproute2] ip: change flag names to an array

2017-07-07 Thread Lorenzo Colitti
On Sat, Jul 8, 2017 at 12:39 AM, Stephen Hemminger wrote: > For the most of the address flags, use a table of bit values rather > than open coding every value. This allows for easier inevitable > expansion of flags. Thanks for doing this. > +static unsigned int get_ifa_flag_mask(const char *nam