-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathmrdisc.h
53 lines (42 loc) · 1.57 KB
/
mrdisc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Multicast Router Discovery Protocol, RFC4286 (IPv4 only)
*
* Copyright (C) 2017-2021 Joachim Wiberg <troglobit@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SMCROUTE_MRDISC_H_
#define SMCROUTE_MRDISC_H_
#include "config.h"
#define MRDISC_INTERVAL_DEFAULT 20
#ifdef ENABLE_MRDISC
int mrdisc_init (int interval);
int mrdisc_exit (void);
int mrdisc_register (char *ifname, short vif);
int mrdisc_deregister ( short vif);
int mrdisc_enable (short vif);
int mrdisc_disable (short vif);
void mrdisc_send ( void *arg);
void mrdisc_recv (int sd, void *arg);
#else
#define mrdisc_init(interval)
#define mrdisc_exit()
#define mrdisc_register(ifname, vif) 0
#define mrdisc_deregister(vif) 0
#define mrdisc_enable(ifname)
#define mrdisc_disable(ifname) {}
#define mrdisc_send(arg)
#define mrdisc_recv(sd, arg)
#endif
#endif /* SMCROUTE_MRDISC_H_ */