summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-13 14:00:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-13 14:00:59 +0100
commit41e8560ea7c09533d03f523380c1cb5c62d87261 (patch)
tree684fdff336751ef76b1527c8f9de6af968701b4c /src/channel.c
parent338d8fc2da19f5d6a75c339d9e6ecac43b68a1e4 (diff)
sync-mode: add unicast UDP support to propagate state-changes
This patch adds support for unicast UDP to the channel infrastructure. With this patch, you can select UDP unicast to propagate state-changes instead of multicast. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index 733fd03..255026a 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -19,10 +19,12 @@
static struct channel_ops *ops[CHANNEL_MAX];
extern struct channel_ops channel_mcast;
+extern struct channel_ops channel_udp;
void channel_init(void)
{
ops[CHANNEL_MCAST] = &channel_mcast;
+ ops[CHANNEL_UDP] = &channel_udp;
}
#define HEADERSIZ 28 /* IP header (20 bytes) + UDP header 8 (bytes) */