xref: /freebsd/contrib/libpcap/rpcapd/rpcapd.h (revision 57e22627f9459b9dfd6043b32e02ecfcf205e176)
1*57e22627SCy Schubert /*
2*57e22627SCy Schubert  * Copyright (c) 2002 - 2003
3*57e22627SCy Schubert  * NetGroup, Politecnico di Torino (Italy)
4*57e22627SCy Schubert  * All rights reserved.
5*57e22627SCy Schubert  *
6*57e22627SCy Schubert  * Redistribution and use in source and binary forms, with or without
7*57e22627SCy Schubert  * modification, are permitted provided that the following conditions
8*57e22627SCy Schubert  * are met:
9*57e22627SCy Schubert  *
10*57e22627SCy Schubert  * 1. Redistributions of source code must retain the above copyright
11*57e22627SCy Schubert  * notice, this list of conditions and the following disclaimer.
12*57e22627SCy Schubert  * 2. Redistributions in binary form must reproduce the above copyright
13*57e22627SCy Schubert  * notice, this list of conditions and the following disclaimer in the
14*57e22627SCy Schubert  * documentation and/or other materials provided with the distribution.
15*57e22627SCy Schubert  * 3. Neither the name of the Politecnico di Torino nor the names of its
16*57e22627SCy Schubert  * contributors may be used to endorse or promote products derived from
17*57e22627SCy Schubert  * this software without specific prior written permission.
18*57e22627SCy Schubert  *
19*57e22627SCy Schubert  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20*57e22627SCy Schubert  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21*57e22627SCy Schubert  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22*57e22627SCy Schubert  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23*57e22627SCy Schubert  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24*57e22627SCy Schubert  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25*57e22627SCy Schubert  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26*57e22627SCy Schubert  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27*57e22627SCy Schubert  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28*57e22627SCy Schubert  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29*57e22627SCy Schubert  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30*57e22627SCy Schubert  *
31*57e22627SCy Schubert  */
32*57e22627SCy Schubert 
33*57e22627SCy Schubert #ifndef __RPCAPD_H__
34*57e22627SCy Schubert #define __RPCAPD_H__
35*57e22627SCy Schubert 
36*57e22627SCy Schubert #define PROGRAM_NAME "rpcapd"
37*57e22627SCy Schubert #define SOCKET_MAXCONN 10	/* Maximum number of connections queued into the accept() */
38*57e22627SCy Schubert #ifdef _WIN32
39*57e22627SCy Schubert void send_shutdown_notification(void);	// Send notification to shut down the daemon
40*57e22627SCy Schubert void send_reread_configuration_notification(void);	// Send notification to re-read the configuration file
41*57e22627SCy Schubert #endif
42*57e22627SCy Schubert void main_startup(void);
43*57e22627SCy Schubert 
44*57e22627SCy Schubert #endif
45