1 /*
2     Copyright (C) 2004-2008  Thomas Ries <tries@gmx.net>
3 
4     This file is part of Siproxd.
5 
6     Siproxd is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10 
11     Siproxd is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with Siproxd; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20 
21 
22 /* $Id: fwapi.h 369 2008-01-19 16:07:14Z hb9xar $ */
23 
24 /*
25  * constants
26  */
27 #define ACT_START_RTP	1	/* action: start RTP stream */
28 #define ACT_STOP_RTP	2	/* action: stop  RTP stream */
29 
30 #define DIR_IN		1	/* direction: incoming	*/
31 #define DIR_OUT		2	/* direction: outgoing	*/
32 
33 
34 /*
35  * structure passed to custom firewall control module
36  */
37 typedef struct {
38    int	action;
39    int	direction;
40 
41    struct in_addr local_ipaddr;
42    int		  local_port;
43 
44    struct in_addr remote_ipaddr;
45    int		  remote_port;
46 
47 } fw_ctl_t;
48 
49 
50 /*
51  * Functions that must be present in custom firewall control module.
52  * Siproxd will link against it.
53  */
54 int custom_fw_control(fw_ctl_t fwdata);
55 
56