Commit:     b4a9811c42ecb70b2f0b375f6d4c77ab34d1f598
Parent:     77adefdc9863d63f8d8bdc6a9adcdf9a6b0e2410
Author:     Jonas Danielsson <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 20 17:38:16 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Nov 20 17:38:16 2007 -0800

    [ARP]: 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 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 <[EMAIL PROTECTED]>
    Acked-by: Alexey Kuznetov <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/ipv4/arp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 36d6798..15ca729 100644
--- 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_send(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip, sha,
+                                dev->dev_addr, sha);
                goto out;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to