2
* Copyright (C) 1999 Yasuhiro Ohara
4
* This file is part of GNU Zebra.
6
* GNU Zebra is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation; either version 2, or (at your option) any
11
* GNU Zebra is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with GNU Zebra; see the file COPYING. If not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
27
#define OSPF6_NEIGHBOR_STATE_DOWN 1
29
#define OSPF6_NEIGHBOR_STATE_ATTEMPT 2
31
#define OSPF6_NEIGHBOR_STATE_INIT 3
33
#define OSPF6_NEIGHBOR_STATE_TWOWAY 4
35
#define OSPF6_NEIGHBOR_STATE_EXSTART 5
36
#define NBS_EXCHANGE 6
37
#define OSPF6_NEIGHBOR_STATE_EXCHANGE 6
39
#define OSPF6_NEIGHBOR_STATE_LOADING 7
41
#define OSPF6_NEIGHBOR_STATE_FULL 8
45
/* Function Prototypes */
47
#include "ospf6_types.h"
49
int need_adjacency (struct ospf6_neighbor *);
53
int hello_received (struct thread *);
54
int twoway_received (struct thread *);
55
int negotiation_done (struct thread *);
56
int exchange_done (struct thread *);
57
int loading_done (struct thread *);
58
int adj_ok (struct thread *);
59
int seqnumber_mismatch (struct thread *);
60
int bad_lsreq (struct thread *);
61
int oneway_received (struct thread *);
62
int inactivity_timer (struct thread *);
64
int dr_election (struct ospf6_interface *);
66
#endif /* OSPF6_NSM_H */