History log of /freebsd/sys/netlink/netlink_snl_route_parsers.h (Results 1 – 17 of 17)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ff92493a 17-May-2024 cnbatch <cnbatch@gmail.com>

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
Revi

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

show more ...


Revision tags: release/13.3.0, release/14.0.0
# c344eff9 16-Jun-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: dump interface capabilities with other interface data.

This change exports interface capabilities using the standard
Netlink attribute type, bitset, and switches `ifconfig(8)` to use
it whe

netlink: dump interface capabilities with other interface data.

This change exports interface capabilities using the standard
Netlink attribute type, bitset, and switches `ifconfig(8)` to use
it when displaying interface data.
Bitset comes in two representations. The first one is "compact",
where the bits are exported via two arrays - "mask" listing the
"valid" bits and "values, providing the values for those bits.
The second one is more verbose, listing each bit as a separate item,
with its name, id and value. The latter option is handy when submitting
update requests.

The support for setting capabilities will be added in the upcoming diffs.

Differential Revision: https://reviews.freebsd.org/D40331

show more ...


# 30376771 27-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: fix build


# 656a39c1 27-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: use newly-added snl(3) array parsing for handling multipath
routes.

MFC after: 2 weeks


# 5f19f790 27-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: add snl(3) support for parsing unknown-size arrays

Reviewed by: bapt
Differential Review: https://reviews.freebsd.org/D40282
MFC after: 2 weeks


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

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

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

show more ...


# 3c851dc1 10-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: provide original interface lladdr in the interface dump.

* Store lladdr in the FreeBSD-specific IFLAF_ORIG_HWADDR attr
* Do not export empty IFLA_ADDRESS for interfaces w/o lladdrs.

MFC af

netlink: provide original interface lladdr in the interface dump.

* Store lladdr in the FreeBSD-specific IFLAF_ORIG_HWADDR attr
* Do not export empty IFLA_ADDRESS for interfaces w/o lladdrs.

MFC after: 2 weeks

show more ...


# 30d0fc6f 10-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: export more IPv6 ifa info

* Fill in IFA_CACHEINFO with prefix lifetime data
* Map IPv6 IN6_IFF_ flags to Netlink IFA_F_ flags
* Store original ia6_flags in the FreeBSD-specific IFAF_FLAGS f

netlink: export more IPv6 ifa info

* Fill in IFA_CACHEINFO with prefix lifetime data
* Map IPv6 IN6_IFF_ flags to Netlink IFA_F_ flags
* Store original ia6_flags in the FreeBSD-specific IFAF_FLAGS field

MFC after: 2 weeks

show more ...


# 12248780 10-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: export carp VHID when dumping interface addresses.

MFC after: 2 weeks


# e8e7e146 09-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: fix compiler warnings


# 88bd9ef6 09-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: automatically fill sin6_scope_id in the default snl(3) parsers.

Add the optional post-parse hook to the snl(3) parser declaration.
Use this hook to automatically add the interface indexes t

netlink: automatically fill sin6_scope_id in the default snl(3) parsers.

Add the optional post-parse hook to the snl(3) parser declaration.
Use this hook to automatically add the interface indexes to the
link-local sockaddrs.

MFC after: 2 weeks

show more ...


# ba9c815d 09-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: use consistent variable lifetime in the default snl(3) parsers.

Currently, parsers use original strings/nla pointers instead of
duplicating them. These pointers refer to the temporary packe

netlink: use consistent variable lifetime in the default snl(3) parsers.

Currently, parsers use original strings/nla pointers instead of
duplicating them. These pointers refer to the temporary packet buffer,
which can be silently rewritten when the next message is read.
Instead, duplicate all string/nla attributes using snl_allocz(3) to
give control over variable lifetime to the user.

MFC after: 2 weeks

show more ...


# 5af9ad53 25-Apr-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: add snl(3) support for dumping nexthops and neighbors

MFC after: 2 weeks


Revision tags: release/13.2.0
# 4aeb939e 02-Apr-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: fix NULL check in the default route snl(3) parser.

CID: 1506959
MFC after: 2 weeks


# 9a11f3df 26-Mar-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: add standrard ifaddr/neigh parsers to snl(3).

MFC after: 2 weeks


# da4047d3 09-Mar-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

fix buildworld after 595d23f777dc.

Reported by: se


# 595d23f7 09-Mar-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: add snl(3) default parsers for routes and links.

This change adds the "default" parsers of _all_ route/link attributes
exported by the kernel.
It removes the need to declare similar parser

netlink: add snl(3) default parsers for routes and links.

This change adds the "default" parsers of _all_ route/link attributes
exported by the kernel.
It removes the need to declare similar parsers in the userland applications,
simplifying their logic.

Differential Revision: https://reviews.freebsd.org/D38979
MFC after: 2 weeks

show more ...