2 * fwd - OpenWrt firewall daemon - unix domain socket headers
4 * Copyright (C) 2009 Jo-Philipp Wich <xm@subsignal.org>
6 * The fwd program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
10 * The fwd program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with the fwd program. If not, see http://www.gnu.org/licenses/.
26 #include <sys/socket.h>
29 #define FWD_SOCKET_PATH "/var/run/fwd.sock"
32 enum fwd_ipc_msgtype
{
43 enum fwd_ipc_msgtype type
;
49 int fwd_ipc_listen(void);
50 int fwd_ipc_accept(int);
52 int fwd_ipc_connect(void);
54 int fwd_ipc_recvmsg(int, void *, int);
55 int fwd_ipc_sendmsg(int, void *, int);
57 void fwd_ipc_shutdown(int);
59 int fwd_ipc_sendtype(int, enum fwd_ipc_msgtype
);