diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2018-11-29 04:20:28 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2018-12-03 16:47:58 +0100 |
commit | ad8778c05e7f26790488bdaf583a92ea9de54afa (patch) | |
tree | 3eb7c196e9c9d3572a0ad04ff9d30743d2db3710 /ripngd/ripngd.h | |
parent | ripngd: retrofit the 'default-information' command to the new northbound model (diff) | |
download | frr-ad8778c05e7f26790488bdaf583a92ea9de54afa.tar.xz frr-ad8778c05e7f26790488bdaf583a92ea9de54afa.zip |
ripngd: retrofit the 'default-metric' command to the new northbound model
Trivial conversion. ripng->default_metric was converted to an
uint8_t to match the way it's defined in the YANG module.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripngd/ripngd.h')
-rw-r--r-- | ripngd/ripngd.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ripngd/ripngd.h b/ripngd/ripngd.h index c9bcd8b0e..6ebc72dae 100644 --- a/ripngd/ripngd.h +++ b/ripngd/ripngd.h @@ -77,9 +77,6 @@ #define RIPNG_DEFAULT_ACCEPT_NONE 1 #define RIPNG_DEFAULT_ACCEPT 2 -/* Default value for "default-metric" command. */ -#define RIPNG_DEFAULT_METRIC_DEFAULT 1 - /* For max RTE calculation. */ #ifndef IPV6_HDRLEN #define IPV6_HDRLEN 40 @@ -105,7 +102,7 @@ struct ripng { unsigned long timeout_time; unsigned long garbage_time; int max_mtu; - int default_metric; + uint8_t default_metric; /* Input/output buffer of RIPng. */ struct stream *ibuf; |