* [PATCH][v2] net/ipv4/arp.c: Fix arp reply when sender ip 0
@ 2007-11-20 16:28 Jonas Danielsson
2007-11-21 1:38 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Danielsson @ 2007-11-20 16:28 UTC (permalink / raw)
To: linux-kernel; +Cc: David Miller, Alexey Kuznetsov, jmorris, netdev, akpm
Fix arp reply when received arp probe with sender ip 0.
Send arp reply with target ip address 0.0.0.0 and target hardware address
set to hardware address of requester. Previously sent reply with target
ip address and target hardware address set to same as source fields.
Signed-off-by: Jonas Danielsson <the.sator@gmail.com>
Acked-by: Alexey Kuznetov <kuznet@ms2.inr.ac.ru>
---
arp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -828,7 +828,8 @@ static int arp_process(struct sk_buff *skb)
if (arp->ar_op == htons(ARPOP_REQUEST) &&
inet_addr_type(tip) == RTN_LOCAL &&
!arp_ignore(in_dev,dev,sip,tip))
-
arp_send(ARPOP_REPLY,ETH_P_ARP,tip,dev,tip,sha,dev->dev_addr,dev->dev_addr);
+ arp_send(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip, sha,
+ dev->dev_addr, sha);
goto out;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH][v2] net/ipv4/arp.c: Fix arp reply when sender ip 0
2007-11-20 16:28 [PATCH][v2] net/ipv4/arp.c: Fix arp reply when sender ip 0 Jonas Danielsson
@ 2007-11-21 1:38 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-11-21 1:38 UTC (permalink / raw)
To: the.sator; +Cc: linux-kernel, kuznet, jmorris, netdev, akpm
From: "Jonas Danielsson" <the.sator@gmail.com>
Date: Tue, 20 Nov 2007 17:28:22 +0100
> Fix arp reply when received arp probe with sender ip 0.
>
> Send arp reply with target ip address 0.0.0.0 and target hardware address
> set to hardware address of requester. Previously sent reply with target
> ip address and target hardware address set to same as source fields.
>
>
> Signed-off-by: Jonas Danielsson <the.sator@gmail.com>
> Acked-by: Alexey Kuznetov <kuznet@ms2.inr.ac.ru>
I'm applying this but you gmail folks really have to get your
act together when submitting patches. The patches from gmail
accounts come out corrupted 9 times out of 10.
This time line breaks were added and all tab characters were
turned into spaces.
Please correct this before any future patch submissions.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-21 1:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-20 16:28 [PATCH][v2] net/ipv4/arp.c: Fix arp reply when sender ip 0 Jonas Danielsson
2007-11-21 1:38 ` David Miller
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®