#
37115154 |
| 02-Apr-2024 |
Kristof Provost <kp@FreeBSD.org> |
carp: support VRRPv3
Allow carp(4) to use the VRRPv3 protocol (RFC 5798). We can distinguish carp and VRRP based on the protocol version number (carp is 2, VRRPv3 is 3), and support both from the ca
carp: support VRRPv3
Allow carp(4) to use the VRRPv3 protocol (RFC 5798). We can distinguish carp and VRRP based on the protocol version number (carp is 2, VRRPv3 is 3), and support both from the carp(4) code.
Reviewed by: glebius Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D44774
show more ...
|
Revision tags: release/13.3.0, release/14.0.0 |
|
#
b3e76948 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
6a23843a |
| 28-Apr-2023 |
Kristof Provost <kp@FreeBSD.org> |
libifconfig: fix carp key configuration
There were two issues with the carp key configuration in the new netlink code.
The first is that userspace failed to actually pass the CARP_NL_KEY attribute
libifconfig: fix carp key configuration
There were two issues with the carp key configuration in the new netlink code.
The first is that userspace failed to actually pass the CARP_NL_KEY attribute to the kernel, so a key was never set.
The second issue is that snl_attr_get_string() returns a pointer to the string inside the netlink message. It does not copy the string to the target buffer. That's somewhat inconvenient to work with in libifconfig where we have a static buffer for the key. Introduce snl_attr_copy_string() which can copy a string to a target buffer and uses the 'arg' parameter to pass the buffer size, so it doesn't accidentally exceed the available space.
Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39874
show more ...
|
#
95bc3ba7 |
| 28-Apr-2023 |
Kristof Provost <kp@FreeBSD.org> |
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 expe
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")
show more ...
|
Revision tags: release/13.2.0 |
|
#
28921c4f |
| 31-Mar-2023 |
Kristof Provost <kp@FreeBSD.org> |
carp: allow commands to use interface name rather than index
Get/set commands can now choose to provide the interface name rather than the interface index. This allows userspace to avoid a call to i
carp: allow commands to use interface name rather than index
Get/set commands can now choose to provide the interface name rather than the interface index. This allows userspace to avoid a call to if_nametoindex().
Suggested by: melifaro Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39359
show more ...
|
#
13781800 |
| 15-Mar-2023 |
Kristof Provost <kp@FreeBSD.org> |
carp: support unicast
Allow users to configure the address to send carp messages to. This allows carp to be used in unicast mode, which is useful in certain virtual configurations (e.g. AWS, VMWare
carp: support unicast
Allow users to configure the address to send carp messages to. This allows carp to be used in unicast mode, which is useful in certain virtual configurations (e.g. AWS, VMWare ESXi, ...)
Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D38940
show more ...
|
#
40e04359 |
| 07-Mar-2023 |
Kristof Provost <kp@FreeBSD.org> |
carp: add netlink interface
Allow carp configuration information to be supplied and retrieved via netlink.
Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Netgate") Differential R
carp: add netlink interface
Allow carp configuration information to be supplied and retrieved via netlink.
Reviewed by: melifaro Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39048
show more ...
|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
b1d757bc |
| 23-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 *
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
show more ...
|