aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ospf.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-08 22:59:51 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-08 22:59:51 +0000
commit2c8be34f57c2ba97f3414d290b2ff04eaaf9ac8c (patch)
treef281b52edc45d65fb9aae32b68dee1e9f31345b3 /packet-ospf.c
parent60e5d8235db85ee4bcc841c8c55269693b2f1f51 (diff)
Support for draft-rosen-vpn-ospf-bgp-mpls and for additional BGP
extended communities, from Aamer Akhter. svn path=/trunk/; revision=3667
Diffstat (limited to 'packet-ospf.c')
-rw-r--r--packet-ospf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-ospf.c b/packet-ospf.c
index 119ed1c979..ce582e0ebc 100644
--- a/packet-ospf.c
+++ b/packet-ospf.c
@@ -2,7 +2,7 @@
* Routines for OSPF packet disassembly
* (c) Copyright Hannes R. Boehm <hannes@boehm.org>
*
- * $Id: packet-ospf.c,v 1.41 2001/07/03 04:56:45 guy Exp $
+ * $Id: packet-ospf.c,v 1.42 2001/07/08 22:59:50 guy Exp $
*
* At this time, this module is able to analyze OSPF
* packets as specified in RFC2328. MOSPF (RFC1584) and other
@@ -85,6 +85,7 @@ static const value_string auth_vals[] = {
#define OSPF_OPTIONS_EA 0x10
#define OSPF_OPTIONS_DC 0x20
#define OSPF_OPTIONS_O 0x40
+#define OSPF_OPTIONS_DN 0x01
#define OSPF_DBD_FLAG_MS 1
#define OSPF_DBD_FLAG_M 2
@@ -1032,6 +1033,11 @@ dissect_ospf_options(tvbuff_t *tvb, int offset, proto_tree *tree)
strcat(options_string, "/");
strcat(options_string, "O");
}
+ if (options & OSPF_OPTIONS_DN) {
+ if (options_string[0] != '\0')
+ strcat(options_string, "/");
+ strcat(options_string, "DN");
+ }
proto_tree_add_text(tree, tvb, offset, 1, "Options: 0x%x (%s)",
options, options_string);