netlink
netlink copied to clipboard
NeighDel documentation appears to be incorrect
The documentation for NeighDel
(which wraps RTM_NEIGHDEL
) appears to be incorrect:
// NeighDel will delete an IP address from a link device.
// Equivalent to: `ip addr del $addr dev $link`
func NeighDel(neigh *Neigh) error
This does not match the manual page which reads:
Add, remove, or receive information about a neighbor entry (e.g., an ARP entry). The message contains an ndmsg structure.
All the other Neigh* methods do talk about bridges and the FDB which is about what I would expect.
I guess a correct documentation would be something like:
// NeighDel will delete an entry from the NDB
// Equivalent to: `bridge fdb del $addr dev $dev`
please provide a PR which will be handling this change