]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't log errors about restoring RA for departed interfaces.
authorRoy Marples <roy@marples.name>
Mon, 30 Jun 2014 12:08:00 +0000 (12:08 +0000)
committerRoy Marples <roy@marples.name>
Mon, 30 Jun 2014 12:08:00 +0000 (12:08 +0000)
if-bsd.c

index 9a6e4864f67c66cb8256b8990dc0081113ee0c9b..fd5ac0eaf99106840aeff20b6e6b9ea606071cf5 100644 (file)
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -1034,13 +1034,15 @@ if_rarestore(struct dhcpcd_ctx *ctx)
                            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