History log of /freebsd/tests/sys/netlink/test_rtnl_ifaddr.py (Results 1 – 8 of 8)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.0.0
# 9247238c 13-Jun-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests.

Recent netlink commit added hook for calling IPv6 code upon implicit
inteface bring-up on adding first interface address. This hook handle

netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests.

Recent netlink commit added hook for calling IPv6 code upon implicit
inteface bring-up on adding first interface address. This hook handles
link-local ifa addition for the loopback interface, resulting in
failed assertion in the loopback tests.

Fix the tests by fixing the assert.

show more ...


# 7eee0eaf 20-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: automatically generate broadcast for IPv4 ifa if not set.

MFC after: 2 weeks


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

netlink: add support for adding/deleting interface addresses

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


# d91f8db5 15-May-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

testing: rename IfattrType to IfaAttrType for consistency

All other attribute classes are named as 'type'AttrType and 'type'
int this case is ifa (interface address).

MFC after: 2 weeks


Revision tags: release/13.2.0
# fee65b7e 31-Mar-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

tests: split netlink.py into multiple files to impove maintainability.

This diff does not contain any functional changes.
Its sole purpose is splitting netlink.py into smaller chunks.
The new code s

tests: split netlink.py into multiple files to impove maintainability.

This diff does not contain any functional changes.
Its sole purpose is splitting netlink.py into smaller chunks.
The new code simplifies the upcoming generic netlink support
introduction.

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

show more ...


# 228c632a 16-Jan-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: fix compatibility with older netlink applications.

Some apps try to provide only the non-zero part of the required message
header instead of the full one. It happens when fetching routes o

netlink: fix compatibility with older netlink applications.

Some apps try to provide only the non-zero part of the required message
header instead of the full one. It happens when fetching routes or
interface addresses, where the first header byte is the family.
This behavior is "illegal" under the "strict" Netlink socket option,
however there are many applications out there doing things in the
"old" way.

Support this usecase by copying the provided bytes into the temporary
zero-filled header and running the parser on this header instead.

Reported by: Goran Mekić <meka@tilda.center>

show more ...


# 9408f366 08-Jan-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

testing: fix skipping netlink tests if netlink module is not loaded.


# c1871a33 07-Jan-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

netlink: improve RTM_GETADDR handling.

* Allow filtering by ifa_family & ifa_index.
* Add common RTM_<NEW|DEL|GET>ADDR parser
* Add tests verifying RTM_GETADDR filtering behaviour & output
* Factor

netlink: improve RTM_GETADDR handling.

* Allow filtering by ifa_family & ifa_index.
* Add common RTM_<NEW|DEL|GET>ADDR parser
* Add tests verifying RTM_GETADDR filtering behaviour & output
* Factor out common netlink socket test methods into NetlinkTestTemplate
* Add NLMSG_DONE message handler

Reviewed By: pauamma
Differential Revision: https://reviews.freebsd.org/D37970

show more ...