From: David Gibson <david@gibson.dropbear.id.au>
To: Jon Maloy <jmaloy@redhat.com>
Cc: sbrivio@redhat.com, dgibson@redhat.com, passt-dev@passt.top
Subject: Re: [PATCH v15 4/9] arp/ndp: send ARP announcement / unsolicited NA when neigbour entry added
Date: Fri, 24 Oct 2025 16:54:05 +1100 [thread overview]
Message-ID: <aPsUfadbOInVcd9t@zatzit> (raw)
In-Reply-To: <20251024012933.1933642-5-jmaloy@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]
On Thu, Oct 23, 2025 at 09:29:28PM -0400, Jon Maloy wrote:
> ARP announcements and unsolicited NAs should be handled with caution
> because of the risk of malignant users emitting them to disturb
> network communication.
>
> There is however one case we where we know it is legitimate
> and safe for us to send out such messages: The one time we switch
> from using ctx->own_tap_mac to a MAC address received via the
> recently added neigbour subscription function. Later changes to
> the MAC address of a host in an existing entry cannot be fully
> trusted, so we abstain from doing it in such cases.
>
> When sending this type of messages, we notice that the guest accepts
> the update, but shortly later asks for a confirmation in the form of
> a regular ARP/NS request. This is responded to with the new value,
> and we have exactly the effect we wanted.
>
> This commit adds this functionality.
>
> Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-10-24 5:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 1:29 [PATCH v15 0/9] Use true MAC address of LAN local remote hosts Jon Maloy
2025-10-24 1:29 ` [PATCH v15 1/9] netlink: add subscription on changes in NDP/ARP table Jon Maloy
2025-10-24 4:03 ` David Gibson
2025-10-24 8:14 ` Stefano Brivio
2025-10-24 1:29 ` [PATCH v15 2/9] fwd: Add cache table for ARP/NDP contents Jon Maloy
2025-10-24 5:51 ` David Gibson
2025-10-24 9:11 ` Stefano Brivio
2025-10-24 10:43 ` David Gibson
2025-10-24 1:29 ` [PATCH v15 3/9] arp/ndp: respond with true MAC address of LAN local remote hosts Jon Maloy
2025-10-24 5:52 ` David Gibson
2025-10-24 1:29 ` [PATCH v15 4/9] arp/ndp: send ARP announcement / unsolicited NA when neigbour entry added Jon Maloy
2025-10-24 5:54 ` David Gibson [this message]
2025-10-29 12:30 ` Stefano Brivio
2025-10-24 1:29 ` [PATCH v15 5/9] flow: add MAC address of LAN local remote hosts to flow Jon Maloy
2025-10-24 1:29 ` [PATCH v15 6/9] udp: forward external source MAC address through tap interface Jon Maloy
2025-10-24 1:29 ` [PATCH v15 7/9] tcp: " Jon Maloy
2025-10-24 1:29 ` [PATCH v15 8/9] tap: change signature of function tap_push_l2h() Jon Maloy
2025-10-24 1:29 ` [PATCH v15 9/9] icmp: let icmp use mac address from flowside structure Jon Maloy
2025-10-30 12:37 ` [PATCH v15 0/9] Use true MAC address of LAN local remote hosts Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aPsUfadbOInVcd9t@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=dgibson@redhat.com \
--cc=jmaloy@redhat.com \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).