]>
git.proxmox.com Git - mirror_frr.git/blob - eigrpd/eigrp_neighbor.h
2 * EIGRP Neighbor Handling.
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_NEIGHBOR_H
33 #define _ZEBRA_EIGRP_NEIGHBOR_H
36 extern struct eigrp_neighbor
*eigrp_nbr_get(struct eigrp_interface
*ei
,
37 struct eigrp_header
*,
39 extern struct eigrp_neighbor
*eigrp_nbr_new(struct eigrp_interface
*ei
);
40 extern void eigrp_nbr_delete(struct eigrp_neighbor
*neigh
);
42 extern int holddown_timer_expired(struct thread
*thread
);
44 extern int eigrp_neighborship_check(struct eigrp_neighbor
*neigh
,
45 struct TLV_Parameter_Type
*tlv
);
46 extern void eigrp_nbr_state_update(struct eigrp_neighbor
*neigh
);
47 extern void eigrp_nbr_state_set(struct eigrp_neighbor
*neigh
, uint8_t state
);
48 extern uint8_t eigrp_nbr_state_get(struct eigrp_neighbor
*neigh
);
49 extern int eigrp_nbr_count_get(struct eigrp
*eigrp
);
50 extern const char *eigrp_nbr_state_str(struct eigrp_neighbor
*neigh
);
51 extern struct eigrp_neighbor
*
52 eigrp_nbr_lookup_by_addr(struct eigrp_interface
*ei
, struct in_addr
*addr
);
53 extern struct eigrp_neighbor
*
54 eigrp_nbr_lookup_by_addr_process(struct eigrp
*eigrp
, struct in_addr addr
);
55 extern void eigrp_nbr_hard_restart(struct eigrp_neighbor
*nbr
, struct vty
*vty
);
57 extern int eigrp_nbr_split_horizon_check(struct eigrp_nexthop_entry
*ne
,
58 struct eigrp_interface
*ei
);
59 #endif /* _ZEBRA_EIGRP_NEIGHBOR_H */