diff options
author | Olivier Dugeon <olivier.dugeon@orange.com> | 2018-01-19 15:04:41 +0100 |
---|---|---|
committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2018-01-19 15:04:41 +0100 |
commit | fd3b19f25200c2788d34bf25a62161927a123369 (patch) | |
tree | 2e4d9261eaa973f33abe618f508d2b56ff49310e /ospfd/ospf_ext.c | |
parent | OSPFD: Add Experimental Segment Routing support (diff) | |
download | frr-fd3b19f25200c2788d34bf25a62161927a123369.tar.xz frr-fd3b19f25200c2788d34bf25a62161927a123369.zip |
OSPFD: Update Segment Routing implementation
- ospf_ext.c: Correct deferred pointer raised by valgrind
- ospf_sr.c: Correct deffered pointer raised by valgrind. Modify
Segment Routing shutdown. This is due to the fact that RI LSA
4.0.0.0 is flush prior to 7.0.0.X & 8.0.0.X LSA. This trigger
SR-Node deletion which also remove all Extended Link / Prefix
leaving them unavailable when there are referenced by 7.0.0.X
& 8.0.0.X LSA flushing.
- doc/OSPF-SR.rst: Correct Restructured Text syntax and add
Configuration example as well as Credit section
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_ext.c')
-rw-r--r-- | ospfd/ospf_ext.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c index e4dad990b..0ed580043 100644 --- a/ospfd/ospf_ext.c +++ b/ospfd/ospf_ext.c @@ -918,6 +918,10 @@ static struct ospf_lsa *ospf_ext_pref_lsa_new(struct ospf_area *area, u_int32_t tmp; u_int16_t length; + /* Sanity Check */ + if (exti == NULL) + return NULL; + /* Create a stream for LSA. */ if ((s = stream_new(OSPF_MAX_LSA_SIZE)) == NULL) { zlog_warn("EXT: stream_new() error"); @@ -998,6 +1002,10 @@ static struct ospf_lsa *ospf_ext_link_lsa_new(struct ospf_area *area, u_int32_t tmp; u_int16_t length; + /* Sanity Check */ + if (exti == NULL) + return NULL; + /* Create a stream for LSA. */ if ((s = stream_new(OSPF_MAX_LSA_SIZE)) == NULL) { zlog_warn("EXT: stream_new() error"); |