[lldp-devel] [PATCH] lldpad: Use a permament socket for ioctls

John Fastabend john.r.fastabend at intel.com
Fri Apr 5 17:55:26 UTC 2013


On 3/21/2013 1:17 PM, Mark Rustad wrote:
> Use a permanent socket for routine ioctls. This not
> only is a minor optimization, but it also avoids bizzare
> behavior when the process runs out of sockets due to
> a socket leak.
>
> Signed-off-by: Mark Rustad <mark.d.rustad at intel.com>
> Tested-by: Jack Morgan <jack.morgan at intel.com>
> ---
>
>   lldp_rtnl.c |   16 +----
>   lldp_util.c |  203 ++++++++++++++++++++++-------------------------------------
>   2 files changed, 80 insertions(+), 139 deletions(-)
>

Applied. Nice catch.



More information about the lldp-devel mailing list