summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ext.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2018-02-01 14:30:34 +0100
committerOlivier Dugeon <olivier.dugeon@orange.com>2018-02-01 14:30:34 +0100
commitdb28a51f7e3b7ada03994e1fb4eb027fc9b37f11 (patch)
tree3ca34024e94af3e91d17a5142258e1e978775613 /ospfd/ospf_ext.h
parentOSPFd: Clean up Segment Routing patch (diff)
downloadfrr-db28a51f7e3b7ada03994e1fb4eb027fc9b37f11.tar.xz
frr-db28a51f7e3b7ada03994e1fb4eb027fc9b37f11.zip
OSPFd: Correct Extended Prefix LSA refresh
- When Extended Prefix LSA need to be refresh, paramaters may be taken from the wrong interface i.e. Extended Link instead of Prefix resulting in producing an empty LSA body. Then, ospfd crash due to the assert on LSA length in ospf_lsa_different() function: code check that the LSA size is larger than LSA header i.e. LSA is not empty. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_ext.h')
-rw-r--r--ospfd/ospf_ext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_ext.h b/ospfd/ospf_ext.h
index 130faf671..3ebca7f5d 100644
--- a/ospfd/ospf_ext.h
+++ b/ospfd/ospf_ext.h
@@ -192,7 +192,7 @@ struct ext_itf {
extern int ospf_ext_init(void);
extern void ospf_ext_term(void);
extern void ospf_ext_update_sr(bool enable);
-extern int ospf_ext_schedule_prefix_index(struct interface *ifp,
+extern uint32_t ospf_ext_schedule_prefix_index(struct interface *ifp,
uint32_t index,
struct prefix_ipv4 *p,
uint8_t flags);