Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Purge ARP/NDP entries on an interface when the interface...
details: https://anonhg.NetBSD.org/src/rev/a41cbac45eb1
branches: trunk
changeset: 354580:a41cbac45eb1
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Jun 22 09:53:24 2017 +0000
description:
Purge ARP/NDP entries on an interface when the interface is down
Fix PR kern/51179
diffstat:
sys/netinet/in.c | 5 +++--
sys/netinet6/in6.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r 255520b98862 -r a41cbac45eb1 sys/netinet/in.c
--- a/sys/netinet/in.c Thu Jun 22 09:29:23 2017 +0000
+++ b/sys/netinet/in.c Thu Jun 22 09:53:24 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.204 2017/06/22 09:23:10 ozaki-r Exp $ */
+/* $NetBSD: in.c,v 1.205 2017/06/22 09:53:24 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.204 2017/06/22 09:23:10 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.205 2017/06/22 09:53:24 ozaki-r Exp $");
#include "arp.h"
@@ -1505,6 +1505,7 @@
{
in_if_link_down(ifp);
+ lltable_purge_entries(LLTABLE(ifp));
}
void
diff -r 255520b98862 -r a41cbac45eb1 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Thu Jun 22 09:29:23 2017 +0000
+++ b/sys/netinet6/in6.c Thu Jun 22 09:53:24 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.247 2017/06/22 09:29:23 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.248 2017/06/22 09:53:25 ozaki-r Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.247 2017/06/22 09:29:23 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.248 2017/06/22 09:53:25 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2274,6 +2274,7 @@
{
in6_if_link_down(ifp);
+ lltable_purge_entries(LLTABLE6(ifp));
}
void
Home |
Main Index |
Thread Index |
Old Index