blob: 4c08e181893a4c7d745e59639bdf77544be1c9f5 [file] [log] [blame]
Paul Jakma57345092011-12-25 17:52:09 +01001/*
2 * This file is free software: you may copy, redistribute and/or modify it
3 * under the terms of the GNU General Public License as published by the
4 * Free Software Foundation, either version 2 of the License, or (at your
5 * option) any later version.
6 *
7 * This file is distributed in the hope that it will be useful, but
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *
15 * This file incorporates work covered by the following copyright and
16 * permission notice:
17 *
18Copyright 2011 by Matthieu Boutier and Juliusz Chroboczek
19
20Permission is hereby granted, free of charge, to any person obtaining a copy
21of this software and associated documentation files (the "Software"), to deal
22in the Software without restriction, including without limitation the rights
23to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24copies of the Software, and to permit persons to whom the Software is
25furnished to do so, subject to the following conditions:
26
27The above copyright notice and this permission notice shall be included in
28all copies or substantial portions of the Software.
29
30THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
36THE SOFTWARE.
37*/
38
Matthieu Boutierd3351d12012-01-19 22:36:56 +010039#include "vty.h"
40
Paul Jakma57345092011-12-25 17:52:09 +010041extern struct timeval babel_now; /* current time */
42extern struct thread_master *master; /* quagga's threads handler */
43extern int debug;
Juliusz Chroboczek52d54422012-02-11 13:08:00 +010044extern int default_wireless_hello_interval, default_wired_hello_interval;
45extern int resend_delay;
Paul Jakma57345092011-12-25 17:52:09 +010046
47extern unsigned char myid[8];
48
49extern const unsigned char zeroes[16], ones[16];
50
51extern int protocol_port;
52extern unsigned char protocol_group[16];
53extern int protocol_socket;
54extern int kernel_socket;
55extern int max_request_hopcount;
Matthieu Boutierd3351d12012-01-19 22:36:56 +010056
Matthieu Boutier69394542012-01-28 10:35:12 +010057void babel_load_state_file(void);
Matthieu Boutierd3351d12012-01-19 22:36:56 +010058void show_babel_main_configuration (struct vty *vty);