blob: fbb7dc5eb660f3af3841a631cbc0ddc3cabdfa39 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001/*
2 * Copyright (C) 1999 Yasuhiro Ohara
3 *
4 * This file is part of GNU Zebra.
5 *
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
9 * later version.
10 *
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.
15 *
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.
20 */
21
22#ifndef OSPF6_DBEX_H
23#define OSPF6_DBEX_H
24
25/* for ack_type() */
26#define NO_ACK 0
27#define DELAYED_ACK 1
28#define DIRECT_ACK 2
29
30/* Function Prototypes */
31void
32ospf6_add_delayed_ack (struct ospf6_lsa *, struct ospf6_interface *);
33void
34ospf6_remove_delayed_ack (struct ospf6_lsa *, struct ospf6_interface *);
35void ospf6_lsa_delayed_ack_remove_all (struct ospf6_lsa *lsa);
36
37void ospf6_dbex_prepare_summary (struct ospf6_neighbor *);
38
39int
40ospf6_dbex_check_dbdesc_lsa_header (struct ospf6_lsa_header *lsa_header,
41 struct ospf6_neighbor *from);
42
43void
44ospf6_dbex_acknowledge_delayed (struct ospf6_lsa *lsa,
45 struct ospf6_interface *o6i);
46
47void
48ospf6_dbex_receive_lsa (struct ospf6_lsa_header *,
49 struct ospf6_neighbor *);
50
51int ack_type (struct ospf6_lsa *, int, struct ospf6_neighbor *);
52
53void ospf6_dbex_flood (struct ospf6_lsa *, struct ospf6_neighbor *);
54
55void
56ospf6_dbex_remove_from_all_retrans_list (struct ospf6_lsa *lsa);
57
58#endif /* OSPF6_DBEX_H */
59