#
d0b2dbfa |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
#
c4ba4aa5 |
|
02-Mar-2021 |
Ryan Moeller <freqlabs@FreeBSD.org> |
libifconfig: Overhaul ifconfig_media_* interfaces Define an ifmedia_t type to use for ifmedia words. Add ifconfig_media_lookup_* functions to lookup ifmedia words by name. Get media options as an array of option names rather than formatting it as a comma-delimited list into a buffer. Sprinkle const on static the static description tables for peace of mind. Don't need to zero memory allocated by calloc. Reviewed by: kp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29029
|
#
e3d06599 |
|
14-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
libifconfig: Add a symbol map This is a no-op for now since libifconfig is only built as a static lib. Reviewed by: freqlabs, kp, adrian Differential Revision: https://reviews.freebsd.org/D28119
|
#
4d135bbd |
|
02-Sep-2020 |
John Baldwin <jhb@FreeBSD.org> |
libifconfig now depends on libm due to usage of log10(). ld.bfd in particular requires -lm to come after libifconfig on the command line when linking rescue. Reviewed by: freqlabs, adrian Differential Revision: https://reviews.freebsd.org/D26258
|
#
94cba803 |
|
09-Aug-2020 |
Ryan Moeller <freqlabs@FreeBSD.org> |
Move ifconfig SFP status functionality into libifconfig libifconfig_sfp.h provides an API in libifconfig for querying SFP module properties, operational status, and vendor strings, as well as descriptions of the various fields, string conversions, and other useful helpers for implementing user interfaces. SFP module status is obtained by reading registers via an I2C interface. Descriptions of these registers and the values therein have been collected in a Lua table which is used to generate all the boilerplace C headers and source files for accessing these values, their names, and descriptions. The generated code is fully commented and readable. This is the first use of libifconfig in ifconfig itself. For now, the scope remains very limited. Over time, more of ifconfig will be replaced with libifconfig. Some minor changes to the formatting of ifconfig output have been made: - Module memory hex dumps are indented one extra space as a result of using hexdump(3) instead of a bespoke hex dump function. - Media descriptions have an added two-character short-name in parenthesis. - QSFP modules were incorrectly displaying TX bias current as power. Now TX channels display bias current, and this change has been made for both SFP and QSFP modules for consistency. A Lua binding for libifconfig including this functionality is implemented but has not been included in this commit. The plan is for it to be committed after dynamic module loading has been enabled in flua. Reviewed by: kp, melifaro Relnotes: yes Differential Revision: https://reviews.freebsd.org/D25494
|
#
e5539fb6 |
|
30-Jun-2020 |
Ryan Moeller <freqlabs@FreeBSD.org> |
libifconfig: Add function to get bridge status The new function operates similarly to ifconfig_lagg_get_lagg_status and likewise is accompanied by a function to free the bridge status data structure. I have included in this patch the relocation of some strings describing STP parameters and the PV2ID macro from ifconfig into net/if_bridgevar.h as they are useful for consumers of libifconfig. Reviewed by: kp, melifaro, mmacy Approved by: mmacy (mentor) MFC after: 1 week Relnotes: yes Differential Revision: https://reviews.freebsd.org/D25460
|
#
e055e336 |
|
24-Mar-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
wlandebug: Add include path for libifconfig as it is a internallib Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D24172
|
#
e1157dce |
|
25-Feb-2019 |
Ed Maste <emaste@FreeBSD.org> |
Make libifconfig INTERNALLIB Instead of PRIVATELIB + NO_PIC. This avoids the need for the wlandebug PIE special case added in r344211, and provides a stronger guarantee against 3rd party software coming to depend on the API or ABI. If / when we declare the API/ABI to be stable we can make it a normal library. Discussed with: bapt Sponsored by: The FreeBSD Foundation
|
#
b1d757bc |
|
22-Feb-2018 |
Alan Somers <asomers@FreeBSD.org> |
libifconfig: multiple feature additions Added the ability to: * Create virtual interfaces * Create vlan interfaces * Get interface fib * Get interface groups * Get interface status * Get nd6 info * Get media status * Get additional ifaddr info in a convenient struct * Get vhids * Get carp info * Get lagg and laggport status * Iterate over all interfaces and ifaddrs And add more examples, too. Note that this is a backwards-incompatible change. But that's ok, because it's a private library. MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D14463
|
#
567de0da |
|
11-Sep-2016 |
Allan Jude <allanjude@FreeBSD.org> |
Mark libifconfig as private until the API/ABI is stable libifconfig is still experimental and under active development. To avoid making any ABI promises, mark the library as private Suggested by: bapt Reviewed by: kp
|
#
ec214349 |
|
02-Sep-2016 |
Kristof Provost <kp@FreeBSD.org> |
Renaming libifc to libifconfig in response to feedback on initial commit of this library. Sticking to 'libifconfig' (and 'ifconfig_' as function prefix) should reduce chances of namespace collisions, make it more clear what the library does, and be more in line with existing libraries. Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com> Differential Revision: https://reviews.freebsd.org/D7742 Reviewed by: cem, kp
|