diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-08-23 12:11:20 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-08-23 12:11:20 +0200 |
commit | cf3be894fcb95adb360425c8482954522e9110d2 (patch) | |
tree | 9a6f2a95cd36218bcf6e852ecc300074ba7fef16 /src/channel_udp.c | |
parent | 9d99a7699d7021a1c219d6553e037ac7ba4a5a37 (diff) | |
download | conntrack-tools-cf3be894fcb95adb360425c8482954522e9110d2.tar.gz conntrack-tools-cf3be894fcb95adb360425c8482954522e9110d2.zip |
conntrackd: add support state-replication based on TCP
This patch adds support for TCP as protocol to replicate
state-changes between two daemons. Note that this only
makes sense with the notrack mode.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/channel_udp.c')
-rw-r--r-- | src/channel_udp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/channel_udp.c b/src/channel_udp.c index 1c15b47..5c88647 100644 --- a/src/channel_udp.c +++ b/src/channel_udp.c @@ -112,12 +112,27 @@ channel_udp_stats_extended(struct channel *c, int active, send(fd, buf, size, 0); } +static int +channel_udp_isset(struct channel *c, fd_set *readfds) +{ + struct udp_channel *m = c->data; + return udp_isset(m->server, readfds); +} + +static int +channel_udp_accept_isset(struct channel *c, fd_set *readfds) +{ + return 0; +} + struct channel_ops channel_udp = { .open = channel_udp_open, .close = channel_udp_close, .send = channel_udp_send, .recv = channel_udp_recv, .get_fd = channel_udp_get_fd, + .isset = channel_udp_isset, + .accept_isset = channel_udp_accept_isset, .stats = channel_udp_stats, .stats_extended = channel_udp_stats_extended, }; |