netdev-linux, netdev-bsd: Make access to AF_INET socket thread-safe.
authorBen Pfaff <blp@nicira.com>
Sat, 10 Aug 2013 04:14:23 +0000 (21:14 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 10 Aug 2013 04:14:23 +0000 (21:14 -0700)
commit259e0b1ad1bfea762a76f0098deb8f8d8db1dfa3
tree40ef603fd6f4f435c696c0aed554ef968adb68c4
parent86f1d0326bd07ebf0f3dcb197007d7b67c205cbe
netdev-linux, netdev-bsd: Make access to AF_INET socket thread-safe.

The only uses of 'af_inet_sock', in both drivers, were ioctls, so it seemed
like a good abstraction to write a function that just does such an ioctl,
and to factor out shared code into socket-util.

Signed-off-by: Ben Pfaff <blp@nicira.com>
CC: Ed Maste <emaste@freebsd.org>
lib/netdev-bsd.c
lib/netdev-linux.c
lib/netdev-linux.h
lib/socket-util.c
lib/socket-util.h
lib/vlandev.c