summaryrefslogtreecommitdiffstats
path: root/ripngd/ripngd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-29 04:20:28 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-12-03 16:47:58 +0100
commitad8778c05e7f26790488bdaf583a92ea9de54afa (patch)
tree3eb7c196e9c9d3572a0ad04ff9d30743d2db3710 /ripngd/ripngd.h
parentripngd: retrofit the 'default-information' command to the new northbound model (diff)
downloadfrr-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.h5
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;