]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[neighbour] Always use network device's own link-layer address
authorMichael Brown <mcb30@ipxe.org>
Mon, 5 Jan 2026 14:22:16 +0000 (14:22 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 5 Jan 2026 14:22:16 +0000 (14:22 +0000)
commitd0e01bb3fcf434abc7b20c399cfab6d8a2d36986
treea6b2e2b5b09e2cddc8d98681f1d9f32e873cd883
parent7c39c04a537ce29dccc6f2bae9749d1d371429c1
[neighbour] Always use network device's own link-layer address

The API for neighbour_tx() allows for an explicit source link-layer
address, but this will be ignored if the packet is deferred for
transmission after completion of neighbour discovery.  The network
device's own link-layer address will always be used when sending
neighbour discovery packets, and when sending any deferred packets
after discovery completes.

All callers pass in the network device's own link-layer address as the
source address anyway, and so this explicit source link-layer address
is never used for any meaningful purpose.

Simplify the neighbour_tx() API by removing the ability to pass in an
explicit source link-layer address.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/arp.h
src/include/ipxe/ndp.h
src/include/ipxe/neighbour.h
src/net/ipv4.c
src/net/ipv6.c
src/net/neighbour.c