diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-01-31 08:32:15 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-01-31 08:32:15 -0500 | 
| commit | 7c6ff2c54f531cf42e696575b730a465d9df6000 (patch) | |
| tree | 18770fbf5836d385146610097460b796a2d00a3d /eigrpd/eigrp_structs.h | |
| parent | 127949a9afa11fba8511e072a3e056a8f1b9eec7 (diff) | |
eigrpd: Correctly set the mtu for eigrp packets sent
This version of eigrp pre-calculated the eigrp metric
to be a default of 1500 bytes, but unfortunately it
had entered the byte order wrong.
Modify the code to properly set the byte order
according to the eigrp rfc as well as actually
read in and transmit the mtu of the interface
instead of hard coding it to 1500 bytes.
Fixes: #7986
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'eigrpd/eigrp_structs.h')
| -rw-r--r-- | eigrpd/eigrp_structs.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_structs.h b/eigrpd/eigrp_structs.h index cddab57dd5..0d8bb29964 100644 --- a/eigrpd/eigrp_structs.h +++ b/eigrpd/eigrp_structs.h @@ -40,7 +40,7 @@  struct eigrp_metrics {  	uint32_t delay;  	uint32_t bandwidth; -	unsigned char mtu[3]; +	uint8_t mtu[3];  	uint8_t hop_count;  	uint8_t reliability;  	uint8_t load;  | 
