]>
Commit | Line | Data |
---|---|---|
718e3744 | 1 | /* |
2 | * RIPng daemon | |
3 | * Copyright (C) 1998 Kunihiro Ishiguro | |
4 | * | |
5 | * This file is part of GNU Zebra. | |
6 | * | |
7 | * GNU Zebra is free software; you can redistribute it and/or modify it | |
8 | * under the terms of the GNU General Public License as published by the | |
9 | * Free Software Foundation; either version 2, or (at your option) any | |
10 | * later version. | |
11 | * | |
12 | * GNU Zebra is distributed in the hope that it will be useful, but | |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * General Public License for more details. | |
16 | * | |
896014f4 DL |
17 | * You should have received a copy of the GNU General Public License along |
18 | * with this program; see the file COPYING; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
718e3744 | 20 | */ |
21 | ||
22 | #ifndef _ZEBRA_RIPNG_ROUTE_H | |
23 | #define _ZEBRA_RIPNG_ROUTE_H | |
24 | ||
d62a17ae | 25 | struct ripng_aggregate { |
26 | /* Aggregate route count. */ | |
27 | unsigned int count; | |
718e3744 | 28 | |
d62a17ae | 29 | /* Suppressed route count. */ |
30 | unsigned int suppress; | |
718e3744 | 31 | |
d62a17ae | 32 | /* Metric of this route. */ |
d7c0a89a | 33 | uint8_t metric; |
718e3744 | 34 | |
d62a17ae | 35 | /* Tag field of RIPng packet.*/ |
d7c0a89a | 36 | uint16_t tag; |
a94434b6 | 37 | |
d62a17ae | 38 | /* Route-map futures - this variables can be changed. */ |
39 | struct in6_addr nexthop_out; | |
d7c0a89a QY |
40 | uint8_t metric_set; |
41 | uint8_t metric_out; | |
42 | uint16_t tag_out; | |
718e3744 | 43 | }; |
44 | ||
fe08ba7e | 45 | extern void ripng_aggregate_increment(struct agg_node *rp, |
d62a17ae | 46 | struct ripng_info *rinfo); |
fe08ba7e | 47 | extern void ripng_aggregate_decrement(struct agg_node *rp, |
d62a17ae | 48 | struct ripng_info *rinfo); |
fe08ba7e | 49 | extern void ripng_aggregate_decrement_list(struct agg_node *rp, |
d62a17ae | 50 | struct list *list); |
5c84b9a5 RW |
51 | extern int ripng_aggregate_add(struct ripng *ripng, struct prefix *p); |
52 | extern int ripng_aggregate_delete(struct ripng *ripng, struct prefix *p); | |
d62a17ae | 53 | extern void ripng_aggregate_free(struct ripng_aggregate *aggregate); |
718e3744 | 54 | |
55 | #endif /* _ZEBRA_RIPNG_ROUTE_H */ |