netdev
[Top] [All Lists]

Re: IFF_NOARP & broadcasting

To: karlis@xxxxx (Karlis Peisenieks)
Subject: Re: IFF_NOARP & broadcasting
From: kuznet@xxxxxxxxxxxxx
Date: Wed, 24 Jul 2002 20:52:55 +0400 (MSD)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20020724190421.A2449@karlis> from "Karlis Peisenieks" at Jul 24, 2 08:15:01 pm
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> Is there any serious reason why when device has IFF_NOARP set, devices ll
> address is used as destination address even for broadcasts (and even when
> devices broadcast address is valid)?

No reasons, I think. Instead of that your patch, it may be better just 
exchange order of tests. As I remember, ll addr is initialized
to dev_addr for NOARP just to get a valid unicast address as destination
for eth_type_trans() to work correctly.


> Currently it is impossible to send out correct broadcast over ethernet
> when IFF_NOARP is set.

No, it is surely not impossible. f.e.

ip neigh add 255.255.255.255 dev dummy0 lladdr ff:ff:ff:ff:ff:ff

works.

Alexey


<Prev in Thread] Current Thread [Next in Thread>