diff options
author | Ben Pfaff <blp@nicira.com> | 2013-08-09 21:14:23 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-09 21:14:23 -0700 |
commit | 259e0b1ad1bfea762a76f0098deb8f8d8db1dfa3 (patch) | |
tree | 40ef603fd6f4f435c696c0aed554ef968adb68c4 /lib/netdev-linux.h | |
parent | 86f1d0326bd07ebf0f3dcb197007d7b67c205cbe (diff) |
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>
Diffstat (limited to 'lib/netdev-linux.h')
-rw-r--r-- | lib/netdev-linux.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/netdev-linux.h b/lib/netdev-linux.h index 7874dd6c..0c61bc90 100644 --- a/lib/netdev-linux.h +++ b/lib/netdev-linux.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Nicira, Inc. + * Copyright (c) 2011, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,5 @@ struct netdev; int netdev_linux_ethtool_set_flag(struct netdev *netdev, uint32_t flag, const char *flag_name, bool enable); -int netdev_linux_get_af_inet_sock(void); #endif /* netdev-linux.h */ |