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_snmp.c | |
| 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_snmp.c')
| -rw-r--r-- | isisd/isis_snmp.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/isisd/isis_snmp.c b/isisd/isis_snmp.c index ae570a0864..b4ae063639 100644 --- a/isisd/isis_snmp.c +++ b/isisd/isis_snmp.c @@ -2161,7 +2161,9 @@ static uint8_t *isis_snmp_find_circ(struct variable *v, oid *name,  		/*  		 * return false if lan hellos must be padded  		 */ -		if (circuit->pad_hellos) +		if (circuit->pad_hellos == ISIS_HELLO_PADDING_ALWAYS || +		    (circuit->pad_hellos == ISIS_HELLO_PADDING_SOMETIMES && +		     circuit->upadjcount[0] + circuit->upadjcount[1] == 0))  			return SNMP_INTEGER(ISIS_SNMP_TRUTH_VALUE_FALSE);  		return SNMP_INTEGER(ISIS_SNMP_TRUTH_VALUE_TRUE);  | 
