aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Hu <whu@FreeBSD.org>2020-05-20 11:03:59 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-11 11:52:46 +0200
commit1a840361e80d17ab7b1dd6db32372ea21ce69b09 (patch)
tree3153eca7b5b00420465ffcbcc98a6ff331aa53d0
parent7293d1e7b6f1ef012710b1a2e0e7d89889c782e6 (diff)
downloadnewlib-1a840361e80d17ab7b1dd6db32372ea21ce69b09.zip
newlib-1a840361e80d17ab7b1dd6db32372ea21ce69b09.tar.gz
newlib-1a840361e80d17ab7b1dd6db32372ea21ce69b09.tar.bz2
HyperV socket implementation for FreeBSD
This change adds Hyper-V socket feature in FreeBSD. New socket address family AF_HYPERV and its kernel support are added. Submitted by: Wei Hu <weh@microsoft.com> Reviewed by: Dexuan Cui <decui@microsoft.com> Relnotes: yes Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D24061
-rw-r--r--newlib/libc/sys/rtems/include/sys/socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/socket.h b/newlib/libc/sys/rtems/include/sys/socket.h
index 3431947..d0d31a2 100644
--- a/newlib/libc/sys/rtems/include/sys/socket.h
+++ b/newlib/libc/sys/rtems/include/sys/socket.h
@@ -257,7 +257,8 @@ struct accept_filter_arg {
#define AF_IEEE80211 37 /* IEEE 802.11 protocol */
#define AF_INET_SDP 40 /* OFED Socket Direct Protocol ipv4 */
#define AF_INET6_SDP 42 /* OFED Socket Direct Protocol ipv6 */
-#define AF_MAX 42
+#define AF_HYPERV 43 /* HyperV sockets */
+#define AF_MAX 43
/*
* When allocating a new AF_ constant, please only allocate
* even numbered constants for FreeBSD until 134 as odd numbered AF_
@@ -265,7 +266,6 @@ struct accept_filter_arg {
*/
#define AF_VENDOR00 39
#define AF_VENDOR01 41
-#define AF_VENDOR02 43
#define AF_VENDOR03 45
#define AF_VENDOR04 47
#define AF_VENDOR05 49