]>
git.proxmox.com Git - mirror_frr.git/blob - eigrpd/eigrp_interface.h
2 * EIGRP Interface Functions.
3 * Copyright (C) 2013-2016
15 * This file is part of GNU Zebra.
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
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.
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
32 #ifndef _ZEBRA_EIGRP_INTERFACE_H_
33 #define _ZEBRA_EIGRP_INTERFACE_H_
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
*);
40 extern void eigrp_del_if_params(struct eigrp_if_params
*);
41 extern struct eigrp_if_params
*eigrp_new_if_params(void);
42 extern struct eigrp_interface
*eigrp_if_new(struct eigrp
*, struct interface
*,
44 extern struct eigrp_interface
*eigrp_if_table_lookup(struct interface
*,
46 extern struct eigrp_if_params
*eigrp_lookup_if_params(struct interface
*,
48 extern int eigrp_if_up(struct eigrp_interface
*);
49 extern void eigrp_if_stream_set(struct eigrp_interface
*);
50 extern void eigrp_if_set_multicast(struct eigrp_interface
*);
51 extern u_char
eigrp_default_iftype(struct interface
*);
52 extern void eigrp_if_free(struct eigrp_interface
*, int);
53 extern int eigrp_if_down(struct eigrp_interface
*);
54 extern void eigrp_if_stream_unset(struct eigrp_interface
*);
56 extern struct eigrp_interface
*eigrp_if_lookup_by_local_addr(struct eigrp
*,
59 extern struct eigrp_interface
*eigrp_if_lookup_by_name(struct eigrp
*,
61 struct eigrp_interface
*eigrp_if_lookup_recv_if(struct eigrp
*, struct in_addr
,
64 /* Simulate down/up on the interface. */
65 extern void eigrp_if_reset(struct interface
*);
67 extern u_int32_t
eigrp_bandwidth_to_scaled(u_int32_t
);
68 extern u_int32_t
eigrp_scaled_to_bandwidth(u_int32_t
);
69 extern u_int32_t
eigrp_delay_to_scaled(u_int32_t
);
70 extern u_int32_t
eigrp_scaled_to_delay(u_int32_t
);
73 #endif /* ZEBRA_EIGRP_INTERFACE_H_ */