Skip to content
Commit 2e82a58d authored by Vincent Duvert's avatar Vincent Duvert Committed by David S. Miller
Browse files

appletalk: Improve handling of broadcast packets

When a broadcast AppleTalk packet is received, prefer queuing it on the
socket whose address matches the address of the interface that received
the packet (and is listening on the correct port). Userspace
applications that handle such packets will usually send a response on
the same socket that received the packet; this fix allows the response
to be sent on the correct interface.

If a socket matching the interface's address is not found, an arbitrary
socket listening on the correct port will be used, if any. This matches
the implementation's previous behavior.

Fixes atalkd's responses to network information requests when multiple
network interfaces are configured to use AppleTalk.

Link: https://lore.kernel.org/netdev/20200722113752.1218-2-vincent.ldev@duvert.net/
Link: https://gist.github.com/VinDuv/4db433b6dce39d51a5b7847ee749b2a4


Signed-off-by: default avatarVincent Duvert <vincent.ldev@duvert.net>
Signed-off-by: default avatarDoug Brown <doug@schmorgal.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 86b29d83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment