diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-10-04 14:57:27 +0200 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-10-18 09:41:02 +0200 | 
| commit | 9d32589b58af66621f00e907523d2c52a7c27fcf (patch) | |
| tree | 8409f710ce497d21ede9a554f08315190660550c /zebra/label_manager.h | |
| parent | b5808ecc892cf4ddf78cd8a340555dea691fbd2c (diff) | |
zebra, test: mark mpls label chunks as dynamic or static
The zebra label manager stores the mpls label chunks,
but does not record if the label request was for a
dynamic or a static chunk.
For all label requests accepted, mark the label chunk
if the 'base' parameter is set to MPLS_LABEL_BASE_ANY,
unmark it otherwise.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/label_manager.h')
| -rw-r--r-- | zebra/label_manager.h | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/label_manager.h b/zebra/label_manager.h index 74f40fab23..df9513281f 100644 --- a/zebra/label_manager.h +++ b/zebra/label_manager.h @@ -42,6 +42,7 @@ struct label_manager_chunk {  	unsigned short instance;  	uint32_t session_id;  	uint8_t keep; +	uint8_t is_dynamic; /* Tell if chunk is dynamic or static */  	uint32_t start; /* First label of the chunk */  	uint32_t end;   /* Last label of the chunk */  }; @@ -82,7 +83,7 @@ int lm_client_connect_response(uint8_t proto, uint16_t instance,  /* convenience function to allocate an lmc to be consumed by the above API */  struct label_manager_chunk *  create_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id, -		   uint8_t keep, uint32_t start, uint32_t end); +		   uint8_t keep, uint32_t start, uint32_t end, bool is_dynamic);  void delete_label_chunk(void *val);  /* register/unregister callbacks for hooks */  | 
