path: root/include/conntrackd.h
diff options
authorPablo Neira Ayuso <>2009-05-23 12:54:51 +0200
committerPablo Neira Ayuso <>2009-05-23 12:54:51 +0200
commitef047d03613bf9fa105db009773136817e2ec4c6 (patch)
tree7bdeaa64da5ebe1aeb79bdfaa8c24fa8de2cfad7 /include/conntrackd.h
parent0374398fd14bf587d80d9d31e361e266e69387c8 (diff)
conntrackd: detect where the events comes from
Since Linux kernel 2.6.29, ctnetlink reports the changes that have been done using ctnetlink. With this patch, conntrackd can recognize who is the origin of the event messages. For example, this is interesting to avoid a messy implicit bulk send during the commit of entries. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/conntrackd.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conntrackd.h b/include/conntrackd.h
index 013ec4f..81cfd51 100644
--- a/include/conntrackd.h
+++ b/include/conntrackd.h
@@ -218,9 +218,9 @@ struct ct_mode {
struct nf_conntrack *ct,
void *data);
int (*purge)(void);
- void (*event_new)(struct nf_conntrack *ct);
- void (*event_upd)(struct nf_conntrack *ct);
- int (*event_dst)(struct nf_conntrack *ct);
+ void (*event_new)(struct nf_conntrack *ct, int origin);
+ void (*event_upd)(struct nf_conntrack *ct, int origin);
+ int (*event_dst)(struct nf_conntrack *ct, int origin);
/* conntrackd modes */