[PATCH 1/2] route: do not enforce minlen in inet6_parse_protinfo() when parsing IFLA_INET6_CONF

Thomas Graf tgraf at suug.ch
Thu Mar 20 03:36:12 EDT 2014


On 03/19/14 at 02:49pm, Thomas Haller wrote:
> Before, the attribute IFLA_INET6_CONF expected .minlen = DEVCONF_MAX * 4, where
> DEVCONF_MAX was defined in a libnl internal header file. If the running
> kernel was compiled using a different size (having fewer DEVCONF_* values), libnl
> would reject the netlink messages as invalid.
> 
> Analog, do not require minlength IPV4_DEVCONF_MAX * 4 for inet_parse_af()
> when parsing IFLA_INET_CONF.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1062533
> 
> Signed-off-by: Thomas Haller <thaller at redhat.com>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list