diff options
| author | Diogo Oliveira <14191454+dorDiogo@users.noreply.github.com> | 2023-01-20 17:08:45 -0800 | 
|---|---|---|
| committer | Diogo Oliveira <14191454+dorDiogo@users.noreply.github.com> | 2023-02-28 08:48:30 -0800 | 
| commit | e36ec6acbc347625e7fa1c6f63722292117884b5 (patch) | |
| tree | c3f1ac316c9b755e027bac93ee9b4f4ffc869169 /isisd/isis_circuit.h | |
| parent | 617d2b71c0d1b61dfb319f5f629953a95e6beef5 (diff) | |
isisd: Add support for isis hello padding sometimes
New configuration to pad ISIS hello packets during adjacency formation only.
Signed-off-by: Diogo Oliveira <14191454+dorDiogo@users.noreply.github.com>
Diffstat (limited to 'isisd/isis_circuit.h')
| -rw-r--r-- | isisd/isis_circuit.h | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/isisd/isis_circuit.h b/isisd/isis_circuit.h index 494e96b697..58aa28195f 100644 --- a/isisd/isis_circuit.h +++ b/isisd/isis_circuit.h @@ -63,6 +63,15 @@ struct isis_circuit_arg {  	struct isis_circuit *circuit;  }; +/* + * Hello padding types + */ +enum isis_hello_padding { +	ISIS_HELLO_PADDING_ALWAYS, +	ISIS_HELLO_PADDING_DISABLED, +	ISIS_HELLO_PADDING_SOMETIMES +}; +  struct isis_circuit {  	enum isis_circuit_state state;  	uint8_t circuit_id;	  /* l1/l2 bcast CircuitID */ @@ -100,7 +109,7 @@ struct isis_circuit {  		struct isis_p2p_info p2p;  	} u;  	uint8_t priority[ISIS_LEVELS]; /* l1/2 IS configured priority */ -	int pad_hellos;     /* add padding to Hello PDUs ? */ +	enum isis_hello_padding pad_hellos; /* type of Hello PDUs padding */  	char ext_domain;    /* externalDomain   (boolean) */  	int lsp_regenerate_pending[ISIS_LEVELS];  	uint64_t lsp_error_counter;  | 
