Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135182
b: refs/heads/master
c: 73ce7b0
h: refs/heads/master
v: v3
  • Loading branch information
Denys Fedoryshchenko authored and David S. Miller committed Mar 13, 2009
1 parent 310a2b8 commit e024214
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f8ae0a21d83f43006d7f6d2862e921dbf2eeddd
refs/heads/master: 73ce7b01b4496a5fbf9caf63033c874be692333f
7 changes: 5 additions & 2 deletions trunk/net/ipv4/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,11 @@ static int arp_process(struct sk_buff *skb)
* cache.
*/

/* Special case: IPv4 duplicate address detection packet (RFC2131) */
if (sip == 0) {
/*
* Special case: IPv4 duplicate address detection packet (RFC2131)
* and Gratuitous ARP/ARP Announce. (RFC3927, Section 2.4)
*/
if (sip == 0 || tip == sip) {
if (arp->ar_op == htons(ARPOP_REQUEST) &&
inet_addr_type(net, tip) == RTN_LOCAL &&
!arp_ignore(in_dev, sip, tip))
Expand Down

0 comments on commit e024214

Please sign in to comment.