Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2025 18:41:26 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 663a571514fb - main - sockets: add PF_HYPERV alias
Message-ID:  <202510141841.59EIfQhg035944@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

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

commit 663a571514fbbc237ac841f7ff2f5e26db966445
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-10-14 18:41:25 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510141841.59EIfQhg035944>