git: b2e4da0b53ad - main - devd: Use PF_LOCAL instead of PF_INET
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 May 2026 01:29:41 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=b2e4da0b53ad082768b8f6f83766e030fd00d02a
commit b2e4da0b53ad082768b8f6f83766e030fd00d02a
Author: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
AuthorDate: 2026-05-07 01:28:08 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2026-05-07 01:28:08 +0000
devd: Use PF_LOCAL instead of PF_INET
Avoid dependency on INET (IPv4) by using PF_LOCAL,
allowing media check to work on systems without INET support.
PR: 295045
Reviewed by: kevans
MFC after: 1 week
---
sbin/devd/devd.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc
index ee38fbb2ccee..cff50d2f8d80 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -369,7 +369,7 @@ media::do_match(config &c)
retval = false;
- s = socket(PF_INET, SOCK_DGRAM, 0);
+ s = socket(PF_LOCAL, SOCK_DGRAM, 0);
if (s >= 0) {
memset(&ifmr, 0, sizeof(ifmr));
strlcpy(ifmr.ifm_name, value.c_str(), sizeof(ifmr.ifm_name));