freebsd-src/lib/libifconfig
Kristof Provost 95bc3ba7fe libifconfig: fix incorrect carp output
If one interface has a carp address configured on it ifconfig would show
this information on all interfaces.

That's because the kernel does (as one would expect) not return any carp
data for interface without carp configuration. However, this wound up
not overwriting the data passed in by the caller, and leaving the (now
stale) information in pace. As a result the caller thought carp was
configured on the interface.

Zero out the input structure before making the call to the kernel, so
that we correctly return 0 if there is no carp configuration on the
queried interface.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2023-04-28 14:27:11 +02:00
..
libifconfig.c libifconfig: Set error in ifconfig_get_groups 2021-02-27 18:12:23 -05:00
libifconfig.h carp: support unicast 2023-03-20 14:37:09 +01:00
libifconfig_bridge.c libifconfig: Add function to get bridge status 2020-07-01 02:32:41 +00:00
libifconfig_carp.c libifconfig: fix incorrect carp output 2023-04-28 14:27:11 +02:00
libifconfig_inet.c
libifconfig_inet6.c libifconfig: remove redundant NULL check 2020-05-27 18:26:10 +00:00
libifconfig_internal.c carp: add netlink interface 2023-03-20 10:52:27 +01:00
libifconfig_internal.h carp: add netlink interface 2023-03-20 10:52:27 +01:00
libifconfig_lagg.c
libifconfig_media.c libifconfig: Overhaul ifconfig_media_* interfaces 2021-03-05 04:15:55 -05:00
libifconfig_sfp.c Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
libifconfig_sfp.h Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
libifconfig_sfp_tables.tpl.c Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
libifconfig_sfp_tables.tpl.h Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
libifconfig_sfp_tables_internal.tpl.h Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
Makefile libifconfig: Overhaul ifconfig_media_* interfaces 2021-03-05 04:15:55 -05:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sfp.lua Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
Symbol.map libifconfig: Overhaul ifconfig_media_* interfaces 2021-03-05 04:15:55 -05:00