Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Added clear of dns addresses when IPCP is closed
details: https://anonhg.NetBSD.org/src/rev/fc8906791f84
branches: trunk
changeset: 983375:fc8906791f84
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Wed May 19 02:07:20 2021 +0000
description:
Added clear of dns addresses when IPCP is closed
diffstat:
sys/net/if_spppsubr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r fa33faf82aab -r fc8906791f84 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c Wed May 19 02:02:46 2021 +0000
+++ b/sys/net/if_spppsubr.c Wed May 19 02:07:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.244 2021/05/19 02:02:46 yamaguchi Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.245 2021/05/19 02:07:20 yamaguchi Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.244 2021/05/19 02:02:46 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.245 2021/05/19 02:07:20 yamaguchi Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -3662,12 +3662,14 @@
sppp_close_event(sp, xcp);
#ifdef INET
- if (sp->ipcp.flags & (IPCP_MYADDR_DYN|IPCP_HISADDR_DYN))
+ if (sp->ipcp.flags & (IPCP_MYADDR_DYN|IPCP_HISADDR_DYN)) {
/*
* Some address was dynamic, clear it again.
*/
sppp_clear_ip_addrs(sp);
+ }
#endif
+ memset(&sp->dns_addrs, 0, sizeof sp->dns_addrs);
}
/*
Home |
Main Index |
Thread Index |
Old Index