Re: Ifconfig limitations
- Reply: Mina_Galić : "Re: Ifconfig limitations"
- In reply to: Mina_Galić : "Ifconfig limitations"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 09:32:26 UTC
Hi, All the `/sys/class/net/<device>/*` entries are sysctl(8) entries, like Sobczak, pointed out. They are converted simply by replacing "/" with ".", and there are some helper functions in: contrib/ofed/libibumad/sysfs.c: if (sysctlbyname(PATH_TO_SYS(path), str, &len, NULL, 0) == -1) To do this conversion automagically. you specify the Linux equivalent as a "const char *" pointer, and then it looks up the value for you under FreeBSD. We may not have all the entries, but most you need is there, and some additions specific to FreeBSD. --HPS