]> git.proxmox.com Git - mirror_frr.git/blob - ripngd/ripng_route.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / ripngd / ripng_route.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * RIPng daemon
4 * Copyright (C) 1998 Kunihiro Ishiguro
5 */
6
7 #ifndef _ZEBRA_RIPNG_ROUTE_H
8 #define _ZEBRA_RIPNG_ROUTE_H
9
10 struct ripng_aggregate {
11 /* Aggregate route count. */
12 unsigned int count;
13
14 /* Suppressed route count. */
15 unsigned int suppress;
16
17 /* Metric of this route. */
18 uint8_t metric;
19
20 /* Tag field of RIPng packet.*/
21 uint16_t tag;
22
23 /* Route-map futures - this variables can be changed. */
24 struct in6_addr nexthop_out;
25 uint8_t metric_set;
26 uint8_t metric_out;
27 uint16_t tag_out;
28 };
29
30 extern void ripng_aggregate_increment(struct agg_node *rp,
31 struct ripng_info *rinfo);
32 extern void ripng_aggregate_decrement(struct agg_node *rp,
33 struct ripng_info *rinfo);
34 extern void ripng_aggregate_decrement_list(struct agg_node *rp,
35 struct list *list);
36 extern int ripng_aggregate_add(struct ripng *ripng, struct prefix *p);
37 extern int ripng_aggregate_delete(struct ripng *ripng, struct prefix *p);
38 extern void ripng_aggregate_free(struct ripng_aggregate *aggregate);
39
40 #endif /* _ZEBRA_RIPNG_ROUTE_H */