syslog-ng source
socket-options-inet.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2013 Balabit
3  * Copyright (c) 1998-2013 Balázs Scheidler
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 #ifndef SOCKET_OPTIONS_INET_H_INCLUDED
24 #define SOCKET_OPTIONS_INET_H_INCLUDED
25 
26 #include "socket-options.h"
27 
28 typedef struct _SocketOptionsInet
29 {
30  SocketOptions super;
31  /* user settings */
32  gint ip_ttl_val;
33  gint ip_tos_val;
34  gboolean ip_freebind;
40 
41 void socket_options_inet_set_interface_name(SocketOptionsInet *self, const gchar *interface);
42 gboolean socket_options_inet_set_tcp_keepalive_time(SocketOptionsInet *self, gint tcp_keepalive_time);
43 gboolean socket_options_inet_set_tcp_keepalive_intvl(SocketOptionsInet *self, gint tcp_keepalive_intvl);
44 gboolean socket_options_inet_set_tcp_keepalive_probes(SocketOptionsInet *self, gint tcp_keepalive_probes);
45 
47 SocketOptions *socket_options_inet_new(void);
48 
49 #endif
SocketOptions * socket_options_inet_new(void)
Definition: socket-options-inet.c:280
gboolean socket_options_inet_set_tcp_keepalive_probes(SocketOptionsInet *self, gint tcp_keepalive_probes)
Definition: socket-options-inet.c:107
gboolean socket_options_inet_set_tcp_keepalive_intvl(SocketOptionsInet *self, gint tcp_keepalive_intvl)
Definition: socket-options-inet.c:98
SocketOptionsInet * socket_options_inet_new_instance(void)
Definition: socket-options-inet.c:264
void socket_options_inet_set_interface_name(SocketOptionsInet *self, const gchar *interface)
Definition: socket-options-inet.c:249
gboolean socket_options_inet_set_tcp_keepalive_time(SocketOptionsInet *self, gint tcp_keepalive_time)
Definition: socket-options-inet.c:89
Definition: socket-options-inet.h:29
gint tcp_keepalive_probes
Definition: socket-options-inet.h:37
gboolean ip_freebind
Definition: socket-options-inet.h:34
gint ip_ttl_val
Definition: socket-options-inet.h:32
gint ip_tos_val
Definition: socket-options-inet.h:33
gint tcp_keepalive_intvl
Definition: socket-options-inet.h:36
SocketOptions super
Definition: socket-options-inet.h:30
gchar * interface_name
Definition: socket-options-inet.h:38
gint tcp_keepalive_time
Definition: socket-options-inet.h:35