summaryrefslogtreecommitdiff
path: root/ospfd/ospf_lsa.h
diff options
context:
space:
mode:
authorpaul <paul>2006-01-18 15:07:38 +0000
committerpaul <paul>2006-01-18 15:07:38 +0000
commit779adb0147cfff1a831b08853976342ad2110fcd (patch)
tree76ec1993a7a429d24bda595254348dbd7dc4bebc /ospfd/ospf_lsa.h
parentaf887b5111ada0e8cd961e9479aa9d39796a80c8 (diff)
[ospfd] Add support for oversized LSAs.
2006-01-18 Juergen Kammer <j.kammer@eurodata.de> * ospf_lsa.c: (ospf_router_lsa_new) dont take reference to the stream data until it is constructed, data reference is volatile due to the potential resize in link_info_set 2006-01-18 Paul Jakma <paul.jakma@sun.com> * ospf_lsa.c: (link_info_set) Resize the stream if required and possible. Return number of links added. (lsa_link_*_set) use return value from previous. * ospf_lsa.h: Add OSPF_ROUTER_LSA_LINK_SIZE define.
Diffstat (limited to 'ospfd/ospf_lsa.h')
-rw-r--r--ospfd/ospf_lsa.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_lsa.h b/ospfd/ospf_lsa.h
index 42c08828..9e480dee 100644
--- a/ospfd/ospf_lsa.h
+++ b/ospfd/ospf_lsa.h
@@ -47,8 +47,9 @@
#define OSPF_OPAQUE_AREA_LSA 10
#define OSPF_OPAQUE_AS_LSA 11
-#define OSPF_LSA_HEADER_SIZE 20U
-#define OSPF_MAX_LSA_SIZE 1500U
+#define OSPF_LSA_HEADER_SIZE 20U
+#define OSPF_ROUTER_LSA_LINK_SIZE 12U
+#define OSPF_MAX_LSA_SIZE 1500U
/* AS-external-LSA refresh method. */
#define LSA_REFRESH_IF_CHANGED 0