]>
Commit | Line | Data |
---|---|---|
7f57883e DS |
1 | /* |
2 | * EIGRP Interface Functions. | |
3 | * Copyright (C) 2013-2016 | |
4 | * Authors: | |
5 | * Donnie Savage | |
6 | * Jan Janovic | |
7 | * Matej Perina | |
8 | * Peter Orsag | |
9 | * Peter Paluch | |
10 | * Frantisek Gazo | |
11 | * Tomas Hvorkovy | |
12 | * Martin Kontsek | |
13 | * Lukas Koribsky | |
14 | * | |
15 | * This file is part of GNU Zebra. | |
16 | * | |
17 | * GNU Zebra is free software; you can redistribute it and/or modify it | |
18 | * under the terms of the GNU General Public License as published by the | |
19 | * Free Software Foundation; either version 2, or (at your option) any | |
20 | * later version. | |
21 | * | |
22 | * GNU Zebra is distributed in the hope that it will be useful, but | |
23 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
25 | * General Public License for more details. | |
26 | * | |
896014f4 DL |
27 | * You should have received a copy of the GNU General Public License along |
28 | * with this program; see the file COPYING; if not, write to the Free Software | |
29 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
7f57883e DS |
30 | */ |
31 | ||
32 | #ifndef _ZEBRA_EIGRP_INTERFACE_H_ | |
33 | #define _ZEBRA_EIGRP_INTERFACE_H_ | |
34 | ||
35 | /*Prototypes*/ | |
d62a17ae | 36 | extern void eigrp_if_init(void); |
37 | extern int eigrp_if_new_hook(struct interface *); | |
38 | extern int eigrp_if_delete_hook(struct interface *); | |
7f57883e | 39 | |
b748db67 | 40 | extern bool eigrp_if_is_passive(struct eigrp_interface *ei); |
d62a17ae | 41 | extern void eigrp_del_if_params(struct eigrp_if_params *); |
d62a17ae | 42 | extern struct eigrp_interface *eigrp_if_new(struct eigrp *, struct interface *, |
43 | struct prefix *); | |
d62a17ae | 44 | extern int eigrp_if_up(struct eigrp_interface *); |
45 | extern void eigrp_if_stream_set(struct eigrp_interface *); | |
46 | extern void eigrp_if_set_multicast(struct eigrp_interface *); | |
d7c0a89a | 47 | extern uint8_t eigrp_default_iftype(struct interface *); |
d62a17ae | 48 | extern void eigrp_if_free(struct eigrp_interface *, int); |
49 | extern int eigrp_if_down(struct eigrp_interface *); | |
50 | extern void eigrp_if_stream_unset(struct eigrp_interface *); | |
7f57883e | 51 | |
d62a17ae | 52 | extern struct eigrp_interface *eigrp_if_lookup_by_local_addr(struct eigrp *, |
53 | struct interface *, | |
54 | struct in_addr); | |
55 | extern struct eigrp_interface *eigrp_if_lookup_by_name(struct eigrp *, | |
56 | const char *); | |
7f57883e DS |
57 | |
58 | /* Simulate down/up on the interface. */ | |
d62a17ae | 59 | extern void eigrp_if_reset(struct interface *); |
7f57883e | 60 | |
d7c0a89a QY |
61 | extern uint32_t eigrp_bandwidth_to_scaled(uint32_t); |
62 | extern uint32_t eigrp_scaled_to_bandwidth(uint32_t); | |
63 | extern uint32_t eigrp_delay_to_scaled(uint32_t); | |
64 | extern uint32_t eigrp_scaled_to_delay(uint32_t); | |
7f57883e | 65 | |
7f57883e | 66 | #endif /* ZEBRA_EIGRP_INTERFACE_H_ */ |