Lines Matching refs:ct
94 static void stats_populate(struct nf_conntrack *ct)
96 nfct_attr_unset(ct, ATTR_ORIG_COUNTER_BYTES);
97 nfct_attr_unset(ct, ATTR_ORIG_COUNTER_PACKETS);
98 nfct_attr_unset(ct, ATTR_REPL_COUNTER_BYTES);
99 nfct_attr_unset(ct, ATTR_REPL_COUNTER_PACKETS);
100 nfct_attr_unset(ct, ATTR_TIMEOUT);
101 nfct_attr_unset(ct, ATTR_USE);
103 cache_update_force(STATE_STATS(cache), ct);
107 struct nf_conntrack *ct,
110 if (ct_filter_conntrack(ct, 1))
114 nfct_attr_unset(ct, ATTR_TIMEOUT);
115 nfct_attr_unset(ct, ATTR_ORIG_COUNTER_BYTES);
116 nfct_attr_unset(ct, ATTR_ORIG_COUNTER_PACKETS);
117 nfct_attr_unset(ct, ATTR_REPL_COUNTER_BYTES);
118 nfct_attr_unset(ct, ATTR_REPL_COUNTER_PACKETS);
119 nfct_attr_unset(ct, ATTR_USE);
121 cache_update_force(STATE_STATS(cache), ct);
146 static void stats_event_new(struct nf_conntrack *ct, int origin)
151 nfct_attr_unset(ct, ATTR_TIMEOUT);
153 obj = cache_find(STATE_STATS(cache), ct, &id);
155 obj = cache_object_new(STATE_STATS(cache), ct);
167 static void stats_event_upd(struct nf_conntrack *ct, int origin)
169 nfct_attr_unset(ct, ATTR_TIMEOUT);
170 cache_update_force(STATE_STATS(cache), ct);
173 static int stats_event_del(struct nf_conntrack *ct, int origin)
178 nfct_attr_unset(ct, ATTR_TIMEOUT);
180 obj = cache_find(STATE_STATS(cache), ct, &id);
183 dlog_ct(STATE(stats_log), ct, NFCT_O_PLAIN);
192 .ct = {