From 779adb0147cfff1a831b08853976342ad2110fcd Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 18 Jan 2006 15:07:38 +0000 Subject: [ospfd] Add support for oversized LSAs. 2006-01-18 Juergen Kammer * 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 * 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. --- ospfd/ospf_lsa.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ospfd/ospf_lsa.h') 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 -- cgit v1.2.1