History log of /freebsd/usr.sbin/ndp/ndp_netlink.c (Results 1 – 11 of 11)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# b6d4e3be 31-Oct-2024 Zhenlei Huang <zlei@FreeBSD.org>

ndp: Bring back the -A option for the netlink implementation

This was lost during the conversion to netlink.

Reviewed by: kp
Fixes: 91fbe0819bb9 ndp: convert ndp(8) to netlink
MFC after: 1 week
Di

ndp: Bring back the -A option for the netlink implementation

This was lost during the conversion to netlink.

Reviewed by: kp
Fixes: 91fbe0819bb9 ndp: convert ndp(8) to netlink
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47234

show more ...


# 54ff53d8 12-Oct-2024 Yan-Hao Wang <yanhaowang@FreeBSD.org>

ndp(8): Complete libxo transition

Reviewed by: des
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41417


Revision tags: release/13.4.0
# 209905ec 02-Sep-2024 Helge Oldach <freebsd@oldach.net>

ndp: Fix libxo formatting for the header of neighbor cache

PR: 272749
Reviewed by: zlei
Fixes: e1c7783e220b ndp(8): add structured output formatting via libxo
Fixes: 91fbe0819bb9 ndp: convert ndp

ndp: Fix libxo formatting for the header of neighbor cache

PR: 272749
Reviewed by: zlei
Fixes: e1c7783e220b ndp(8): add structured output formatting via libxo
Fixes: 91fbe0819bb9 ndp: convert ndp(8) to netlink
MFC after: 3 days

show more ...


Revision tags: release/14.1.0, release/13.3.0, release/14.0.0
# 934a24e5 23-Oct-2023 R. Christian McDonald <rcm@rcm.sh>

ndp: improve -c and -d handling in ndp_netlink

This patch restores/fixes some of the behavior present in pre-netlink ndp(8).

1. Deleting a local address now correctly returns EPERM (instead of

ndp: improve -c and -d handling in ndp_netlink

This patch restores/fixes some of the behavior present in pre-netlink ndp(8).

1. Deleting a local address now correctly returns EPERM (instead of
ENOENT)
2. ndp -c no longer dumps the entire table while complaining about
local addresses
3. Return exit code when deleting entry (e.g. trying ndp -d on a local
address is an error)

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D42316

show more ...


# 4f8f43b0 16-Oct-2023 Kristof Provost <kp@FreeBSD.org>

netlink: cope with growing requests

If a request ends up growing beyong the initially allocated space the
netlink functions (such as snl_add_msg_attr_u32()) will allocate a
new buffer. This invalida

netlink: cope with growing requests

If a request ends up growing beyong the initially allocated space the
netlink functions (such as snl_add_msg_attr_u32()) will allocate a
new buffer. This invalidates the header pointer we can have received
from snl_create_msg_request(). Always use the hdr returned by
snl_finalize_msg().

Reviewed by: melifaro
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D42223

show more ...


# b57df6fb 18-Sep-2023 Kristof Provost <kp@FreeBSD.org>

ndp: cope with unresolved neighbours

If we've not (yet) resolved a neighbour nda_lladdr will be NULL, and
NLA_DATA_LEN(neigh->nda_lladdr) will dereference a NULL pointer.

Avoid that by checking nda

ndp: cope with unresolved neighbours

If we've not (yet) resolved a neighbour nda_lladdr will be NULL, and
NLA_DATA_LEN(neigh->nda_lladdr) will dereference a NULL pointer.

Avoid that by checking nda_lladdr first, and only dereferencing if it's
not NULL.

Test case:
ping6 -c 1 <non-existant neighbour>
ndp -a

Reviewed by: melifaro
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D41903

show more ...


# 1cdec283 07-Jun-2023 Joseph Mingrone <jrm@FreeBSD.org>

ndp: Prepare for pending tcpdump update

ndp makes use of gmt2local, however that library has been removed from
tcpdump. Add utc_offset() as a substitute.

Reviewed by: emaste, jhb, melifaro
Sponsor

ndp: Prepare for pending tcpdump update

ndp makes use of gmt2local, however that library has been removed from
tcpdump. Add utc_offset() as a substitute.

Reviewed by: emaste, jhb, melifaro
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40445

show more ...


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

netlink: update rta_multipath conditions in arp/ndp after 656a39c1a062


# 2d7842d0 26-Apr-2023 John Baldwin <jhb@FreeBSD.org>

arp/ndp: Use valid prototypes for function declarations with no arguments.


# 7825619a 25-Apr-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

ndp: fix signed/unsigned compariosn in the netlink code.


# 91fbe081 25-Apr-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

ndp: convert ndp(8) to netlink.

The change is intended to be fully transparent to the users.
Similarly to route(8) and netstat(8), ndp can be build without
netlink by defining WITHOUT_NETLINK in m

ndp: convert ndp(8) to netlink.

The change is intended to be fully transparent to the users.
Similarly to route(8) and netstat(8), ndp can be build without
netlink by defining WITHOUT_NETLINK in make.conf.

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

show more ...