changeset 2551:65869393ad06 draft

Don't log errors about restoring RA for departed interfaces.
author Roy Marples <roy@marples.name>
date Mon, 30 Jun 2014 12:08:00 +0000
parents 957a57a4ff17
children 8238b7cd09d7
files if-bsd.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/if-bsd.c	Mon Jun 30 11:28:14 2014 +0000
+++ b/if-bsd.c	Mon Jun 30 12:08:00 2014 +0000
@@ -1034,13 +1034,15 @@
 			    ctx->ra_restore[ctx->ra_restore_len - 1]);
 			if (set_if_nd6_flag(
 			    ctx->ra_restore[ctx->ra_restore_len -1],
-			    ND6_IFF_ACCEPT_RTADV) == -1)
+			    ND6_IFF_ACCEPT_RTADV) == -1 &&
+			    errno != ENXIO)
 				syslog(LOG_ERR, "%s: set_if_nd6_flag: %m",
 				    ctx->ra_restore[ctx->ra_restore_len - 1]);
 #ifdef ND6_IFF_OVERRIDE_RTADV
 			if (ctx->ra_kernel_set == 0 && del_if_nd6_flag(
 			    ctx->ra_restore[ctx->ra_restore_len -1],
-			    ND6_IFF_OVERRIDE_RTADV) == -1)
+			    ND6_IFF_OVERRIDE_RTADV) == -1 &&
+			    errno != ENXIO)
 				syslog(LOG_ERR, "%s: del_if_nd6_flag: %m",
 				    ctx->ra_restore[ctx->ra_restore_len - 1]);
 #endif