diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2018-05-09 06:34:59 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2018-10-27 20:16:12 +0200 |
commit | 282ae30c4ae3aac7205b456efefbf4b374841a1b (patch) | |
tree | ad3e915af3bd7c0f1575ec3ed1b9e70a3e63fcb1 /ripd/ripd.h | |
parent | ripd: retrofit the 'default-information' command to the new northbound model (diff) | |
download | frr-282ae30c4ae3aac7205b456efefbf4b374841a1b.tar.xz frr-282ae30c4ae3aac7205b456efefbf4b374841a1b.zip |
ripd: retrofit the 'default-metric' command to the new northbound model
Trivial conversion.
rip->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 'ripd/ripd.h')
-rw-r--r-- | ripd/ripd.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ripd/ripd.h b/ripd/ripd.h index c2e39f1a7..1ecedf368 100644 --- a/ripd/ripd.h +++ b/ripd/ripd.h @@ -140,7 +140,7 @@ struct rip { unsigned long garbage_time; /* RIP default metric. */ - int default_metric; + uint8_t default_metric; /* RIP default distance. */ uint8_t distance; @@ -346,9 +346,6 @@ struct rip_md5_data { /* N.B. stuff will break if (RIPv1 != RI_RIP_VERSION_1) || (RIPv2 != RI_RIP_VERSION_2) */ -/* Default value for "default-metric" command. */ -#define RIP_DEFAULT_METRIC_DEFAULT 1 - /* RIP event. */ enum rip_event { RIP_READ, |