]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/pim6sd/pim6_proto.h
unfinished sblive driver, playback/mixer only for now - not enabled in
[FreeBSD/FreeBSD.git] / usr.sbin / pim6sd / pim6_proto.h
1 /*
2  *  Copyright (c) 1998 by the University of Southern California.
3  *  All rights reserved.
4  *
5  *  Permission to use, copy, modify, and distribute this software and
6  *  its documentation in source and binary forms for lawful
7  *  purposes and without fee is hereby granted, provided
8  *  that the above copyright notice appear in all copies and that both
9  *  the copyright notice and this permission notice appear in supporting
10  *  documentation, and that any documentation, advertising materials,
11  *  and other materials related to such distribution and use acknowledge
12  *  that the software was developed by the University of Southern
13  *  California and/or Information Sciences Institute.
14  *  The name of the University of Southern California may not
15  *  be used to endorse or promote products derived from this software
16  *  without specific prior written permission.
17  *
18  *  THE UNIVERSITY OF SOUTHERN CALIFORNIA DOES NOT MAKE ANY REPRESENTATIONS
19  *  ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE.  THIS SOFTWARE IS
20  *  PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
21  *  INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22  *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND
23  *  NON-INFRINGEMENT.
24  *
25  *  IN NO EVENT SHALL USC, OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY
26  *  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, WHETHER IN CONTRACT,
27  *  TORT, OR OTHER FORM OF ACTION, ARISING OUT OF OR IN CONNECTION WITH,
28  *  THE USE OR PERFORMANCE OF THIS SOFTWARE.
29  *
30  *  Other copyrights might apply to parts of this software and are so
31  *  noted when applicable.
32  *
33  * $FreeBSD$
34  */
35 /*  Questions concerning this software should be directed to
36  *  Mickael Hoerdt (hoerdt@clarinet.u-strasbg.fr) LSIIT Strasbourg.
37  *
38  */
39 /*
40  * This program has been derived from pim6dd.
41  * The pim6dd program is covered by the license in the accompanying file
42  * named "LICENSE.pim6dd".
43  */
44 /*
45  * This program has been derived from pimd.
46  * The pimd program is covered by the license in the accompanying file
47  * named "LICENSE.pimd".
48  *
49  */
50
51
52 #ifndef PIM6_PROTO_H
53 #define PIM6_PROTO_H
54 #include "defs.h"
55 #include "vif.h"
56 #include "mrt.h"
57
58 extern build_jp_message_t *build_jp_message_pool;
59 extern int               build_jp_message_pool_counter;
60 extern struct sockaddr_in6 sockaddr6_any;
61 extern struct sockaddr_in6 sockaddr6_d;
62
63 extern int receive_pim6_hello         __P((struct sockaddr_in6 *src,
64                        char *pim_message, int datalen));
65
66 extern int send_pim6_hello            __P((struct uvif *v, u_int16 holdtime));
67 extern void delete_pim6_nbr           __P((pim_nbr_entry_t *nbr_delete));
68
69 extern int  receive_pim6_register    __P((struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
70                          char *pim_message, int datalen));
71 extern int  send_pim6_null_register  __P((mrtentry_t *r));
72 extern int  receive_pim6_register_stop __P((struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
73                            char *pim_message,
74                            int datalen));
75 extern int  send_pim6_register   __P((char *pkt));
76 extern int  receive_pim6_join_prune  __P((struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
77                          char *pim_message, int datalen));
78 extern int  join_or_prune       __P((mrtentry_t *mrtentry_ptr,
79                          pim_nbr_entry_t *upstream_router));
80 extern int  receive_pim6_assert  __P((struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
81                          char *pim_message, int datalen));
82 extern int  send_pim6_assert     __P((struct sockaddr_in6 *source, struct sockaddr_in6 *group,
83                          vifi_t vifi,
84                          mrtentry_t *mrtentry_ptr));
85 extern int  send_periodic_pim6_join_prune __P((vifi_t vifi,
86                           pim_nbr_entry_t *pim_nbr,
87                           u_int16 holdtime));
88 extern int  add_jp_entry        __P((pim_nbr_entry_t *pim_nbr,
89                          u_int16 holdtime, struct sockaddr_in6 *group,
90                          u_int8 grp_msklen, struct sockaddr_in6 *source,
91                          u_int8 src_msklen,
92                          u_int16 addr_flags,
93                          u_int8 join_prune));
94 extern void pack_and_send_jp6_message __P((pim_nbr_entry_t *pim_nbr));
95 extern int  receive_pim6_cand_rp_adv __P((struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
96                          char *pim_message, int datalen));
97 extern int  receive_pim6_bootstrap   __P((struct sockaddr_in6 *src, struct sockaddr_in6 *dst,
98                          char *pim_message, int datalen));
99 extern int  send_pim6_cand_rp_adv    __P(());
100 extern void send_pim6_bootstrap  __P(());
101
102
103 #endif