Lines Matching defs:conn
66 static inline bool already_closed(const struct nf_conn *conn)
68 if (nf_ct_protonum(conn) == IPPROTO_TCP)
69 return conn->proto.tcp.state == TCP_CONNTRACK_TIME_WAIT ||
70 conn->proto.tcp.state == TCP_CONNTRACK_CLOSE;
103 struct xt_connlimit_conn *conn;
118 list_for_each_entry_safe(conn, tmp, hash, list) {
120 &conn->tuple);
127 nf_ct_tuple_equal(&conn->tuple, tuple) &&
138 list_del(&conn->list);
139 kfree(conn);
149 list_del(&conn->list);
150 kfree(conn);
154 if (same_source_net(addr, mask, &conn->tuple.src.u3, family))
164 conn = kzalloc(sizeof(*conn), GFP_ATOMIC);
165 if (conn == NULL)
167 conn->tuple = *tuple;
168 list_add(&conn->list, hash);
254 struct xt_connlimit_conn *conn;
262 list_for_each_entry_safe(conn, tmp, &hash[i], list) {
263 list_del(&conn->list);
264 kfree(conn);