From: Julian Anastasov <ja@ssi.bg>
To: <pjordan@whitehorse.blackwire.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: net/ipv4/arp.c: arp_rcv, rfc2131 BREAKS communication
Date: Mon, 26 Nov 2001 13:12:44 +0200 (EET) [thread overview]
Message-ID: <Pine.LNX.4.33.0111261212330.3166-100000@l> (raw)
In-Reply-To: <20011125181921.A16765@panama>
Hello,
On Sun, 25 Nov 2001 pjordan@whitehorse.blackwire.com wrote:
> > THA. Why to do duplicate address detection with SIP loaded with TIP?
> > There is already a way to do DAD: with SIP=0. May be the authors don't
> > know this solution? SIP=0 is used exactly for this purpose, not to
>
> Could you point me to some documentation on this method, if you know
> where some is ?
You already mentioned it, DHCP SHOULD use SIP=0.0.0.0.
> > election process, something like VRRP. Or may be to configure the
>
> VRRP ?
RFC2338. It guarantees unique IP but tries to keep the MAC.
It has other purposes.
> I am primarily concerned with not having to maintain a 'personal'
> kernel patch to get DHCP relaying to work for G4's. I doubt
> writing Apple would get any responses :(
Hm
> I agree this MUST is overkill. but then also
> 'what is we want to send a normal arp packet ?'
Can you explain? I don't understand the Q
> > IMO, the clients that do duplicate address detection shouldn't
> > drop replies that have THA != Destination Hardware Address. What is
> > that? A security measure? Linux does not check THA at all. And DAD
>
> I believe this is common behaviour for non-promiscuous interfaces .. ?
No, the ARP reply is destined directly to the target MAC but
with ARP data SIP==TIP and SHA==THA, i.e. THA!=target MAC
> > If your fix works for "PowerPC Open Firmware" then this
> > stack performs extra checks that I'm not sure they are specified
> > somewhere and are needed at all. May be I'm missing some standard?
>
> Who can we ask for an answer as to why this might be done ?
If the maintainers don't read this thread then contact them
directly. I'm not sure there is a standard for duplicate address
detection. For now ARP is used to do the detection but without
protocol adapted from all vendors I'm not sure it will be race-free.
There are other client-server oriented protocols where the server
guarantees that the given IP is unique. I don't see an easy solution for
DAD for other purposes, i.e. when two hosts try to use same IP without
obtaining it from some authority. May be this is the reason iproute2 to
come with script (user space solution) to configure the IP addresses.
In this case the gap for race is small.
> Maybe the right fix then is to set DHA to all ones. ffffffffffff. ?
You can try to feed the arp_send call that you change with
dest_hw=NULL and to see whether it works. If it works you will have
a second solution. In any case you need the maintainers' opinion
because it seems nobody recommends anything about the ARP replies,
i.e. for THA when SIP==TIP.
You are not sure it will not break something else (answering your
next posting). You can also look at RARP (RFC903) where THA==Target MAC
is already a requirement but the request is SIP=0 and TIP=0 (similar
but not related to DAD). RFC2131 states that the client SHOULD perform
DAD for the suggested address from DHCP. Later: "may issue an ARP request".
It seems Linux doesn not like these recommendations.
> Regards,
>
> Peter
Regards
--
Julian Anastasov <ja@ssi.bg>
next prev parent reply other threads:[~2001-11-26 11:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-25 12:10 Julian Anastasov
2001-11-26 2:19 ` pjordan
2001-11-26 3:23 ` pjordan
2001-11-26 6:59 ` Bernd Eckenfels
2001-11-26 11:12 ` Julian Anastasov [this message]
2001-11-29 19:11 ` kuznet
-- strict thread matches above, loose matches on Subject: below --
2001-11-24 21:56 pjordan
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=Pine.LNX.4.33.0111261212330.3166-100000@l \
--to=ja@ssi.bg \
--cc=linux-kernel@vger.kernel.org \
--cc=pjordan@whitehorse.blackwire.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®