Commit graph

12 commits

Author SHA1 Message Date
cnbatch ff92493a4f netlink: Fix C++ compile errors
Allow these files to be included in C++ programs with careful casting to
the proper type, like C++ wants (and in a way that also works for C).

MFC After: 1 week
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1245
2024-05-24 22:31:42 -06:00
Alexander V. Chernikov 1377eb268a netlink: add IPv4/IPv6 attribute writers using in[6]_addr instead of
sockaddrs.

MFC after:	2 weeks
2023-05-19 09:45:49 +00:00
Warner Losh 4d846d260e spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix
2023-05-12 10:44:03 -06:00
Kristof Provost 137818006d 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
2023-03-20 14:37:09 +01:00
Alexander V. Chernikov da4047d3ba fix buildworld after 595d23f777.
Reported by:	se
2023-03-09 15:45:57 +00:00
Alexander V. Chernikov 76f6d39150 netlink: add basic message writing support to snl(3).
Differential Revision:	https://reviews.freebsd.org/D38947
MFC after:	2 weeks
2023-03-09 14:33:26 +00:00
Alexander V. Chernikov 6d7da7c849 Revert "netlink: make netlink_snl(3) c++ friendly."
Was pushed accidentally.

This reverts commit 629d9219d9.
2023-02-12 12:17:05 +00:00
Alexander V. Chernikov 629d9219d9 netlink: make netlink_snl(3) c++ friendly. 2023-02-12 11:46:38 +00:00
Alexander V. Chernikov c89209c674 netlink: fix test-includes broken by f2c8381fce
Reported by:	many
2022-12-23 17:58:08 +00:00
Alexander V. Chernikov 3e38754131 netlink: make snl(3) headers self-contained. 2022-12-23 15:52:33 +00:00
Alexander V. Chernikov f6f4ba0b05 netlink: fix netlink_snl_route.h header includes 2022-12-23 15:24:44 +00:00
Alexander V. Chernikov f2c8381fce netlink: add snl(3) - simple netlink library
Reviewed by:	bapt, pauamma
Differential Revision: https://reviews.freebsd.org/D37736
2022-12-23 15:03:13 +00:00