2001-07-28 09:58:58

by Roberto Arcomano

[permalink] [raw]
Subject: [PATCH] net/ipv4/arp.c, kernel 2.4.6 - PROXY_ARP bug on shaper device

This patch should update proxy arp feature for shaper device: it should
correct proxy arp bug when talking with shaper device.
Details are in README file attached:
Thank you for your support.
Best Regards
Roberto Arcomano


Attachments:
diff (967.00 B)
Proxy arp PATCH diff file
README (1.62 kB)
README file for proxy arp PATCH
Download all attachments

2001-07-28 11:43:34

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] net/ipv4/arp.c, kernel 2.4.6 - PROXY_ARP bug on shaper device


Roberto Arcomano writes:
> Solution: The patch investigates about the shaper device
> (it compares string with "shaper"): if yes, we
> search the real interface attached to shaper
> (we read value of priv->dev) and we use that to
> make the classic proxy arp devices compare.
>
> Problems: The patch uses routine "strncmp" which is not the
> best thing (I guess).

This is gross, make a device flag and have shaper set that
flag during shaper device init, then have ARP test it.

Make the name of the flag reflect what the attribute is that shaper
has (and potentially other devices could have) which makes this ARP
special case necessary. Ie. don't name the flag NETIF_F_SHAPER :-)

Later,
David S. Miller
[email protected]