Re: [ovs-dev] [PATCH] netdev: check for iface_name not NULL in netdev_get_addrs

2017-07-18 Thread Daniel Alvarez Sanchez
Thanks Aaron, I just sent a new version of it which also checks for ifa_netmask as the existing code does currently. It will save some memory in cases where either name or netmask are NULL (which I guess it shouldn't happen but it can happen). Thanks again, Daniel On Mon, Jul 17, 2017 at 9:07

Re: [ovs-dev] [PATCH] netdev: check for iface_name not NULL in netdev_get_addrs

2017-07-17 Thread Aaron Conole
Daniel Alvarez Sanchez writes: > When the interfaces list is retrieved through getiffaddrs(), there > might be elements with iface_name set to NULL. > This patch checks iface_name to be not NULL before comparing it to the > actual device name in the loop that calculates how

[ovs-dev] [PATCH] netdev: check for iface_name not NULL in netdev_get_addrs

2017-07-17 Thread Daniel Alvarez Sanchez
When the interfaces list is retrieved through getiffaddrs(), there might be elements with iface_name set to NULL. This patch checks iface_name to be not NULL before comparing it to the actual device name in the loop that calculates how many interfaces exist with that same name. Note, that this