2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-03-09 05:07:46 +01:00
|
|
|
/*
|
|
|
|
* EIGRP Interface Functions.
|
|
|
|
* Copyright (C) 2013-2016
|
|
|
|
* Authors:
|
|
|
|
* Donnie Savage
|
|
|
|
* Jan Janovic
|
|
|
|
* Matej Perina
|
|
|
|
* Peter Orsag
|
|
|
|
* Peter Paluch
|
|
|
|
* Frantisek Gazo
|
|
|
|
* Tomas Hvorkovy
|
|
|
|
* Martin Kontsek
|
|
|
|
* Lukas Koribsky
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ZEBRA_EIGRP_INTERFACE_H_
|
|
|
|
#define _ZEBRA_EIGRP_INTERFACE_H_
|
|
|
|
|
|
|
|
/*Prototypes*/
|
|
|
|
extern void eigrp_if_init(void);
|
|
|
|
extern int eigrp_if_new_hook(struct interface *);
|
|
|
|
extern int eigrp_if_delete_hook(struct interface *);
|
|
|
|
|
2017-10-03 01:50:39 +02:00
|
|
|
extern bool eigrp_if_is_passive(struct eigrp_interface *ei);
|
2017-03-09 05:07:46 +01:00
|
|
|
extern void eigrp_del_if_params(struct eigrp_if_params *);
|
|
|
|
extern struct eigrp_interface *eigrp_if_new(struct eigrp *, struct interface *,
|
|
|
|
struct prefix *);
|
|
|
|
extern int eigrp_if_up(struct eigrp_interface *);
|
|
|
|
extern void eigrp_if_stream_set(struct eigrp_interface *);
|
|
|
|
extern void eigrp_if_set_multicast(struct eigrp_interface *);
|
2018-03-27 21:13:34 +02:00
|
|
|
extern uint8_t eigrp_default_iftype(struct interface *);
|
2017-03-09 05:07:46 +01:00
|
|
|
extern void eigrp_if_free(struct eigrp_interface *, int);
|
|
|
|
extern int eigrp_if_down(struct eigrp_interface *);
|
|
|
|
extern void eigrp_if_stream_unset(struct eigrp_interface *);
|
|
|
|
|
|
|
|
extern struct eigrp_interface *eigrp_if_lookup_by_local_addr(struct eigrp *,
|
|
|
|
struct interface *,
|
|
|
|
struct in_addr);
|
|
|
|
extern struct eigrp_interface *eigrp_if_lookup_by_name(struct eigrp *,
|
|
|
|
const char *);
|
|
|
|
|
|
|
|
/* Simulate down/up on the interface. */
|
|
|
|
extern void eigrp_if_reset(struct interface *);
|
|
|
|
|
2025-03-24 02:16:56 +01:00
|
|
|
extern int eigrp_interface_cmp(const struct eigrp_interface *a, const struct eigrp_interface *b);
|
|
|
|
extern uint32_t eigrp_interface_hash(const struct eigrp_interface *ei);
|
|
|
|
|
|
|
|
DECLARE_HASH(eigrp_interface_hash, struct eigrp_interface, eif_item, eigrp_interface_cmp,
|
|
|
|
eigrp_interface_hash);
|
|
|
|
|
2017-03-09 05:07:46 +01:00
|
|
|
#endif /* ZEBRA_EIGRP_INTERFACE_H_ */
|