git: 87224fa65140 - stable/14 - devd: Use PF_LOCAL instead of PF_INET
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Jun 2026 04:01:06 UTC
The branch stable/14 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=87224fa6514063d6fc1505ec95498f50cf8802d8
commit 87224fa6514063d6fc1505ec95498f50cf8802d8
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-06-10 04:00:47 +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
(cherry picked from commit b2e4da0b53ad082768b8f6f83766e030fd00d02a)
---
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 e4abf0e33fae..c00136a3f61b 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -370,7 +370,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));