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") |
||
---|---|---|
.. | ||
libifconfig_bridge.c | ||
libifconfig_carp.c | ||
libifconfig_inet6.c | ||
libifconfig_inet.c | ||
libifconfig_internal.c | ||
libifconfig_internal.h | ||
libifconfig_lagg.c | ||
libifconfig_media.c | ||
libifconfig_sfp_tables_internal.tpl.h | ||
libifconfig_sfp_tables.tpl.c | ||
libifconfig_sfp_tables.tpl.h | ||
libifconfig_sfp.c | ||
libifconfig_sfp.h | ||
libifconfig.c | ||
libifconfig.h | ||
Makefile | ||
Makefile.depend | ||
sfp.lua | ||
Symbol.map |