]> git.proxmox.com Git - mirror_frr.git/blame - ripngd/ripng_route.h
*: make consistent & update GPLv2 file headers
[mirror_frr.git] / ripngd / ripng_route.h
CommitLineData
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
25struct ripng_aggregate
26{
27 /* Aggregate route count. */
28 unsigned int count;
29
30 /* Suppressed route count. */
31 unsigned int suppress;
32
33 /* Metric of this route. */
34 u_char metric;
35
36 /* Tag field of RIPng packet.*/
dc9ffce8 37 u_int16_t tag;
a94434b6 38
39 /* Route-map futures - this variables can be changed. */
40 struct in6_addr nexthop_out;
41 u_char metric_set;
42 u_char metric_out;
dc9ffce8 43 u_int16_t tag_out;
718e3744 44};
45
6ac29a51
PJ
46extern void ripng_aggregate_increment (struct route_node *rp,
47 struct ripng_info *rinfo);
48extern void ripng_aggregate_decrement (struct route_node *rp,
49 struct ripng_info *rinfo);
c880b636
FL
50extern void ripng_aggregate_decrement_list (struct route_node *rp,
51 struct list *list);
6ac29a51
PJ
52extern int ripng_aggregate_add (struct prefix *p);
53extern int ripng_aggregate_delete (struct prefix *p);
c880b636 54extern void ripng_aggregate_free (struct ripng_aggregate *aggregate);
718e3744 55
56#endif /* _ZEBRA_RIPNG_ROUTE_H */