From 6a636392d33627944df9d5a9573932cdc0bf6da5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 29 Feb 2000 23:19:52 +0000 Subject: Rewrote interface type detection logic. The `unnumbered' flag is now per address, not per interface (hence it's ifa->flags & IA_UNNUMBERED) and should be set reliably. IF_MULTIACCESS should be fixed now, but it isn't wise to rely on it on interfaces configured with /30 prefix. --- nest/iface.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'nest/iface.h') diff --git a/nest/iface.h b/nest/iface.h index b13ec71..5ac9f2f 100644 --- a/nest/iface.h +++ b/nest/iface.h @@ -40,16 +40,16 @@ struct iface { #define IF_UP 1 /* IF_LINK_UP and IP address known */ #define IF_MULTIACCESS 2 -#define IF_UNNUMBERED 4 -#define IF_BROADCAST 8 -#define IF_MULTICAST 0x10 -#define IF_ADMIN_DOWN 0x40 -#define IF_LOOPBACK 0x80 -#define IF_IGNORE 0x100 /* Not to be used by routing protocols (loopbacks etc.) */ -#define IF_LINK_UP 0x200 +#define IF_BROADCAST 4 +#define IF_MULTICAST 8 +#define IF_ADMIN_DOWN 0x10 +#define IF_LOOPBACK 0x20 +#define IF_IGNORE 0x40 /* Not to be used by routing protocols (loopbacks etc.) */ +#define IF_LINK_UP 0x80 #define IA_PRIMARY 0x10000 /* This address is primary */ #define IA_SECONDARY 0x20000 /* This address has been reported as secondary by the kernel */ +#define IA_UNNUMBERED 0x40000 /* This address belongs to an unnumbered device */ #define IA_FLAGS 0xff0000 #define IF_JUST_CREATED 0x10000000 /* Send creation event as soon as possible */ -- cgit v1.2.3