The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=663a571514fbbc237ac841f7ff2f5e26db966445

commit 663a571514fbbc237ac841f7ff2f5e26db966445
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2025-10-14 18:41:25 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2025-10-14 18:41:25 +0000

    sockets: add PF_HYPERV alias
    
    Just make it like all other sockets that have PF_FOO -> AF_FOO alias.
---
 lib/libsys/socket.2 | 2 +-
 sys/sys/socket.h    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libsys/socket.2 b/lib/libsys/socket.2
index b211611c6354..979f6227c9b8 100644
--- a/lib/libsys/socket.2
+++ b/lib/libsys/socket.2
@@ -64,7 +64,7 @@ PF_NETGRAPH   Netgraph sockets,
 PF_NETLINK     Netlink protocols,
 PF_BLUETOOTH   Bluetooth protocols,
 PF_INET_SDP    OFED socket direct protocol (IPv4),
-AF_HYPERV      HyperV sockets
+PF_HYPERV      HyperV sockets
 .Ed
 .Pp
 Each protocol family is connected to an address family, which has the
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index cdd4fa3b4b89..cf1d95da6168 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -396,6 +396,7 @@ struct sockproto {
 #define        PF_NETLINK      AF_NETLINK
 #define        PF_INET_SDP     AF_INET_SDP
 #define        PF_INET6_SDP    AF_INET6_SDP
+#define        PF_HYPERV       AF_HYPERV
 #define        PF_DIVERT       AF_DIVERT
 #define        PF_IPFWLOG      AF_IPFWLOG
 

Reply via email to