• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revision15004be403cb7ebd53bb5c13d0811d1d3cf953b3 (tree)
Time2007-12-08 19:39:03
AuthorJonas Danielsson <the.sator@gmai...>
CommiterWilly Tarreau

Log Message

[PATCH] net/ipv4/arp.c: Fix arp reply when sender ip 0

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>

Change Summary

Incremental Difference

--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -845,7 +845,8 @@ int arp_process(struct sk_buff *skb)
845845 if (arp->ar_op == htons(ARPOP_REQUEST) &&
846846 inet_addr_type(tip) == RTN_LOCAL &&
847847 !arp_ignore(in_dev,dev,sip,tip))
848- arp_send(ARPOP_REPLY,ETH_P_ARP,tip,dev,tip,sha,dev->dev_addr,dev->dev_addr);
848+ arp_send(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip, sha,
849+ dev->dev_addr, sha);
849850 goto out;
850851 }
851852
Show on old repository browser