mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
lib, isisd: Move DEFAULT_SRV6_IFNAME to global srv6.h header
This commit moves DEFAULT_SRV6_IFNAME from isis_srv6.h to srv6.h because there are other daemons that might want to use it (e.g. staticd). Signed-off-by: Yuqing Zhao <galadriel.zyq@alibaba-inc.com>
This commit is contained in:
parent
807d90050d
commit
7aefc15f64
|
@ -698,7 +698,7 @@ void isis_srv6_area_init(struct isis_area *area)
|
|||
srv6db->config.max_end_pop_msd = ISIS_DEFAULT_SRV6_MAX_END_POP_MSD;
|
||||
srv6db->config.max_h_encaps_msd = ISIS_DEFAULT_SRV6_MAX_H_ENCAPS_MSD;
|
||||
srv6db->config.max_end_d_msd = ISIS_DEFAULT_SRV6_MAX_END_D_MSD;
|
||||
strlcpy(srv6db->config.srv6_ifname, ISIS_DEFAULT_SRV6_IFNAME, sizeof(srv6db->config.srv6_ifname));
|
||||
strlcpy(srv6db->config.srv6_ifname, DEFAULT_SRV6_IFNAME, sizeof(srv6db->config.srv6_ifname));
|
||||
#endif
|
||||
|
||||
/* Initialize SRv6 Locator chunks list */
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
#define ISIS_DEFAULT_SRV6_MAX_SEG_LEFT_MSD 3
|
||||
#define ISIS_DEFAULT_SRV6_MAX_END_POP_MSD 3
|
||||
#define ISIS_DEFAULT_SRV6_MAX_H_ENCAPS_MSD 2
|
||||
#define ISIS_DEFAULT_SRV6_MAX_END_D_MSD 5
|
||||
#define ISIS_DEFAULT_SRV6_IFNAME "sr0"
|
||||
#define ISIS_DEFAULT_SRV6_MAX_END_D_MSD 5
|
||||
|
||||
/* SRv6 SID structure */
|
||||
struct isis_srv6_sid_structure {
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#define SRV6_SID_FORMAT_NAME_SIZE 512
|
||||
|
||||
#define DEFAULT_SRV6_IFNAME "sr0"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue