Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Allow Unicast Poll from RFC 1122 to bypass DaD c...
details: https://anonhg.NetBSD.org/src/rev/43d4c114e21d
branches: trunk
changeset: 351386:43d4c114e21d
user: roy <roy%NetBSD.org@localhost>
date: Sat Feb 11 15:37:30 2017 +0000
description:
Allow Unicast Poll from RFC 1122 to bypass DaD checking.
diffstat:
sys/netinet/if_arp.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 442a5f04ec0f -r 43d4c114e21d sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c Sat Feb 11 15:32:51 2017 +0000
+++ b/sys/netinet/if_arp.c Sat Feb 11 15:37:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arp.c,v 1.241 2017/02/07 02:38:08 ozaki-r Exp $ */
+/* $NetBSD: if_arp.c,v 1.242 2017/02/11 15:37:30 roy Exp $ */
/*-
* Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.241 2017/02/07 02:38:08 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.242 2017/02/11 15:37:30 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1161,7 +1161,8 @@
/* DAD check, RFC 5227 */
if (in_hosteq(isaddr, myaddr) ||
- (in_nullhost(isaddr) && in_hosteq(itaddr, myaddr)))
+ (in_nullhost(isaddr) && in_hosteq(itaddr, myaddr)
+ && ISSET(m->m_flags, M_BCAST))) /* Allow Unicast Poll, RFC 1122 */
{
arp_dad_duplicated((struct ifaddr *)ia,
lla_snprintf(llabuf, ar_sha(ah), ah->ar_hln));
Home |
Main Index |
Thread Index |
Old Index