opnsense-src/lib/libifconfig
Franco Fichtner af063949df Revert "sys/socket.h: Fix AF_MAX"
This reverts commit 33a943ef85.

PR: https://forum.opnsense.org/index.php?topic=52691.0

Causes reports of kernel panics the likes of:

 Fatal trap 12: page fault while in kernel mode
 cpuid = 1; apic id = 01
 fault virtual address	= 0x218361fa00
 fault code		= supervisor read data, page not present
 instruction pointer	= 0x20:0xffffffff80c4d7a7
 stack pointer	        = 0x28:0xfffffe00d3332ab0
 frame pointer	        = 0x28:0xfffffe00d3332ab0
 code segment		= base 0x0, limit 0xfffff, type 0x1b
 			= DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags	= interrupt enabled, resume, IOPL = 0
 current process		= 0 (netlink_socket (PID)
 rdi: 000000218361fa00 rsi: 0000000000000000 rdx: 0000000000000000
 rcx: 000000000000000c  r8: 0000000000000000  r9: 0000000000000fff
 rax: 0000000000000000 rbx: fffffe00d3332d40 rbp: fffffe00d3332ab0
 r10: 0000000000000000 r11: 0000000000000000 r12: 0000000000000058
 r13: 0000000000000058 r14: fffff80001b46000 r15: fffff8013d91b0a8
 trap number		= 12
 panic: page fault
 cpuid = 1
 time = 1786547747
 KDB: stack backtrace:
 db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00d3332800
 vpanic() at vpanic+0x136/frame 0xfffffe00d3332930
 panic() at panic+0x43/frame 0xfffffe00d3332990
 trap_pfault() at trap_pfault+0x37d/frame 0xfffffe00d33329e0
 calltrap() at calltrap+0x8/frame 0xfffffe00d33329e0
 --- trap 0xc, rip = 0xffffffff80c4d7a7, rsp = 0xfffffe00d3332ab0, rbp = 0xfffffe00d3332ab0 ---
 counter_u64_fetch() at counter_u64_fetch+0x57/frame 0xfffffe00d3332ab0
 dump_iface() at dump_iface+0x4ec/frame 0xfffffe00d3332b50
 dump_cb() at dump_cb+0x1c/frame 0xfffffe00d3332b70
 if_foreach_sleep() at if_foreach_sleep+0x227/frame 0xfffffe00d3332bf0
 rtnl_handle_getlink() at rtnl_handle_getlink+0x257/frame 0xfffffe00d3332cd0
 rtnl_handle_message() at rtnl_handle_message+0x195/frame 0xfffffe00d3332d30
 nl_taskqueue_handler() at nl_taskqueue_handler+0x469/frame 0xfffffe00d3332e40
 taskqueue_run_locked() at taskqueue_run_locked+0x182/frame 0xfffffe00d3332ec0
 taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe00d3332ef0
 fork_exit() at fork_exit+0x7b/frame 0xfffffe00d3332f30
 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00d3332f30
 --- trap 0x6, rip = 0x1c1f86083327, rsp = 0x101, rbp = 0x2710 ---
 KDB: enter: panic
2026-08-12 19:25:57 +02:00
..
libifconfig.c Revert "sys/socket.h: Fix AF_MAX" 2026-08-12 19:25:57 +02:00
libifconfig.h libifconfig: Add netlink based helper to bring the interface up/down 2025-08-29 17:39:39 +02:00
libifconfig_bridge.c libifconfig: Skip bridge VLAN config for span members 2026-05-05 16:03:45 +01:00
libifconfig_carp.c carp: support VRRPv3 2024-05-08 13:19:03 +02:00
libifconfig_inet.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_inet6.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_internal.c Revert "sys/socket.h: Fix AF_MAX" 2026-08-12 19:25:57 +02:00
libifconfig_internal.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_lagg.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_media.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_nl.c libifconfig: Add netlink based helper to bring the interface up/down 2025-08-29 17:39:39 +02:00
libifconfig_sfp.c <net/sff8472.h>: Conditionally export table of ID names 2025-04-28 13:06:07 -04:00
libifconfig_sfp.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_sfp_tables.tpl.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_sfp_tables.tpl.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libifconfig_sfp_tables_internal.tpl.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile libifconfig: Add netlink based helper to bring the interface up/down 2025-08-29 17:39:39 +02:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
sfp.lua libifconfig: Fix nits in the descriptions of active 100G cables. 2025-03-17 16:05:25 -07:00
Symbol.map libifconfig: Remove ifconfig_set_fib and ifconfig_sfp_id_is_qsfp 2025-08-20 01:07:15 +02:00