2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2002-12-13 21:15:29 +01:00
|
|
|
/*
|
|
|
|
* RIPng daemon
|
|
|
|
* Copyright (C) 1998 Kunihiro Ishiguro
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ZEBRA_RIPNG_ROUTE_H
|
|
|
|
#define _ZEBRA_RIPNG_ROUTE_H
|
|
|
|
|
|
|
|
struct ripng_aggregate {
|
|
|
|
/* Aggregate route count. */
|
|
|
|
unsigned int count;
|
|
|
|
|
|
|
|
/* Suppressed route count. */
|
|
|
|
unsigned int suppress;
|
|
|
|
|
|
|
|
/* Metric of this route. */
|
2018-03-27 21:13:34 +02:00
|
|
|
uint8_t metric;
|
2002-12-13 21:15:29 +01:00
|
|
|
|
|
|
|
/* Tag field of RIPng packet.*/
|
2018-03-27 21:13:34 +02:00
|
|
|
uint16_t tag;
|
2003-05-25 19:10:12 +02:00
|
|
|
|
|
|
|
/* Route-map futures - this variables can be changed. */
|
|
|
|
struct in6_addr nexthop_out;
|
2018-03-27 21:13:34 +02:00
|
|
|
uint8_t metric_set;
|
|
|
|
uint8_t metric_out;
|
|
|
|
uint16_t tag_out;
|
2002-12-13 21:15:29 +01:00
|
|
|
};
|
|
|
|
|
2018-08-03 19:22:48 +02:00
|
|
|
extern void ripng_aggregate_increment(struct agg_node *rp,
|
2008-08-15 14:45:30 +02:00
|
|
|
struct ripng_info *rinfo);
|
2018-08-03 19:22:48 +02:00
|
|
|
extern void ripng_aggregate_decrement(struct agg_node *rp,
|
2008-08-15 14:45:30 +02:00
|
|
|
struct ripng_info *rinfo);
|
2018-08-03 19:22:48 +02:00
|
|
|
extern void ripng_aggregate_decrement_list(struct agg_node *rp,
|
2015-05-22 11:39:53 +02:00
|
|
|
struct list *list);
|
2019-01-04 22:08:10 +01:00
|
|
|
extern int ripng_aggregate_add(struct ripng *ripng, struct prefix *p);
|
|
|
|
extern int ripng_aggregate_delete(struct ripng *ripng, struct prefix *p);
|
2015-05-22 11:39:53 +02:00
|
|
|
extern void ripng_aggregate_free(struct ripng_aggregate *aggregate);
|
2002-12-13 21:15:29 +01:00
|
|
|
|
|
|
|
#endif /* _ZEBRA_RIPNG_ROUTE_H */
|