summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-07-15 16:07:16 +0200
committerMaria Matejka <mq@ucw.cz>2019-07-15 16:07:16 +0200
commit8263690e754a83b8f3c58bd0080a1628d6cba556 (patch)
tree9c0503f0a166b72f018ae3c2e0de0e91d089a62a /proto/ospf/ospf.h
parentefd7c87b5bcd476ba74ffe9f369e2f6fe978cbb1 (diff)
parent1aec7112f7314c3e9a4d8b9440dd85a782295310 (diff)
Merge remote-tracking branch 'origin/master' into mq-filter-stack
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index 3343e5bf..8318ee95 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -484,11 +484,17 @@ struct ospf_neighbor
#define OPT_R 0x0010 /* OSPFv3, originator is active router */
#define OPT_DC 0x0020 /* Related to demand circuits, not used */
#define OPT_O 0x0040 /* OSPFv2 Opaque LSA (RFC 5250) */
-#define OPT_DN 0x0080 /* OSPFv2 VPN loop prevention (RFC 4576)*/
+#define OPT_DN 0x0080 /* OSPFv2 VPN loop prevention (RFC 4576) */
#define OPT_AF 0x0100 /* OSPFv3 Address Families (RFC 5838) */
#define OPT_L_V3 0x0200 /* OSPFv3, link-local signaling */
#define OPT_AT 0x0400 /* OSPFv3, authentication trailer */
+#define HELLO2_OPT_MASK (OPT_E | OPT_N | OPT_L_V2)
+#define DBDES2_OPT_MASK (OPT_E | OPT_L_V2 | OPT_O)
+
+#define HELLO3_OPT_MASK (OPT_V6 | OPT_E | OPT_N | OPT_R | OPT_AF | OPT_L_V3 | OPT_AT )
+#define DBDES3_OPT_MASK (OPT_V6 | OPT_E | OPT_R | OPT_AF | OPT_L_V3 | OPT_AT )
+
/* Router-LSA VEB flags are are stored together with links (OSPFv2) or options (OSPFv3) */
#define OPT_RT_B (0x01 << 24)
#define OPT_RT_E (0x02 << 24)