diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-12-22 11:35:09 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2024-07-11 09:14:34 +0200 |
| commit | 4e76df05476e728d3bdd53821c0f20e4139db1f8 (patch) | |
| tree | 7e66d56d07b57f9b2734423b00204d4d338a8d42 /lib/link_state.h | |
| parent | ebf05b4ee18a94086a15207f14b00b05df5a5dde (diff) | |
isis, lib: add isis srv6 end sid to ls_prefix
According to draft-ietf-lsr-isis-srv6-extensions draft,
the End SID should be available in link state prefix
information.
Add the SID information in the link state prefix, by
getting the END SID from the locator TLV information.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/link_state.h')
| -rw-r--r-- | lib/link_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/link_state.h b/lib/link_state.h index d819c20db7..c54e2ec6d9 100644 --- a/lib/link_state.h +++ b/lib/link_state.h @@ -243,6 +243,7 @@ struct ls_attributes { #define LS_PREF_EXTENDED_TAG 0x04 #define LS_PREF_METRIC 0x08 #define LS_PREF_SR 0x10 +#define LS_PREF_SRV6 0x20 /* Link State Prefix */ struct ls_prefix { @@ -258,6 +259,11 @@ struct ls_prefix { uint8_t sid_flag; /* Segment Routing Flags */ uint8_t algo; /* Algorithm for Segment Routing */ } sr; + struct ls_srv6_sid { + struct in6_addr sid; /* Segment Routing ID */ + uint16_t behavior; /* Endpoint behavior bound to the SID */ + uint8_t flags; /* Flags */ + } srv6; }; /** |
