summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2017-08-31 15:40:23 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-10-04 16:27:02 +0200
commit2a95e63343a94243745e5d7000bb3e0cb61a4a0f (patch)
treeabdb14794f5022c4d1828e8fd58dfc8efea5a6e1 /nest
parent5a8b1fb047d675badc17ab24175d0db06d7cc00c (diff)
RAdv: Support for more specific routes (RFC 4191)
The patch implements Default Router Preferences and More-Specific Routes (RFC 4191) for RAdv protocol, allowing to announce router preference and more specific routes in router advertisements. Routes can be exported to RAdv like to regular routing protocols. Some cleanups, bugfixes and other changes done by Ondrej Zajicek.
Diffstat (limited to 'nest')
-rw-r--r--nest/route.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/route.h b/nest/route.h
index 2e6ae5bf..0834da45 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -430,7 +430,8 @@ typedef struct eattr {
#define EAP_OSPF 3 /* OSPF */
#define EAP_KRT 4 /* Kernel route attributes */
#define EAP_BABEL 5 /* Babel attributes */
-#define EAP_MAX 6
+#define EAP_RADV 6 /* Router advertisment attributes */
+#define EAP_MAX 7
#define EA_CODE(proto,id) (((proto) << 8) | (id))
#define EA_PROTO(ea) ((ea) >> 8)