git: b575dac3e415 - stable/15 - 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:15 UTC
The branch stable/15 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=b575dac3e415ceee136ed77be25e04e3bfce73ce
commit b575dac3e415ceee136ed77be25e04e3bfce73ce
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:36 +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 1ff405244cde..7bd7f650c843 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));