summaryrefslogtreecommitdiff
path: root/zebra/interface.h
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2013-01-24 14:04:50 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2013-09-19 17:51:16 +0200
commitbfac8dcd2fe7ed099a679b5c8245599c6d0312ed (patch)
tree7674e567b6824aac9dfe78f0e149871b4d49a44c /zebra/interface.h
parent02b4805f3914ef6ba0242c6f4dd1b6759ef97bf2 (diff)
zebra: improve interface shutdown behaviour
Linux removes IPv6 addresses when the interface is set down. Those addresses need to be readded when the interface is set up again. Also, an interface should not be reactivated from shutdown by configuring an ip address. Finally, remove the three-state logic for the shutdown setting as its sole current use may be mild confusion. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/interface.h')
-rw-r--r--zebra/interface.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/interface.h b/zebra/interface.h
index 0777a2fa..7a05348c 100644
--- a/zebra/interface.h
+++ b/zebra/interface.h
@@ -34,9 +34,8 @@
#define IF_ZEBRA_MULTICAST_OFF 2
/* For interface shutdown configuration. */
-#define IF_ZEBRA_SHUTDOWN_UNSPEC 0
+#define IF_ZEBRA_SHUTDOWN_OFF 0
#define IF_ZEBRA_SHUTDOWN_ON 1
-#define IF_ZEBRA_SHUTDOWN_OFF 2
/* Router advertisement feature. */
#if (defined(LINUX_IPV6) && (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1)) || defined(KAME)