mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 11:49:32 +00:00
![Davide Caratti](/assets/img/avatar_default.png)
CONFIG_NF_CT_PROTO_DCCP is no more a tristate. When set to y, connection tracking support for DCCP protocol is built-in into nf_conntrack.ko. footprint test: $ ls -l net/netfilter/nf_conntrack{_proto_dccp,}.ko \ net/ipv4/netfilter/nf_conntrack_ipv4.ko \ net/ipv6/netfilter/nf_conntrack_ipv6.ko (builtin)|| dccp | ipv4 | ipv6 | nf_conntrack ---------++--------+--------+--------+-------------- none || 469140 | 828755 | 828676 | 6141434 DCCP || - | 830566 | 829935 | 6533526 Signed-off-by: Davide Caratti <dcaratti@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
40 lines
769 B
C
40 lines
769 B
C
#ifndef _NF_CONNTRACK_DCCP_H
|
|
#define _NF_CONNTRACK_DCCP_H
|
|
|
|
/* Exposed to userspace over nfnetlink */
|
|
enum ct_dccp_states {
|
|
CT_DCCP_NONE,
|
|
CT_DCCP_REQUEST,
|
|
CT_DCCP_RESPOND,
|
|
CT_DCCP_PARTOPEN,
|
|
CT_DCCP_OPEN,
|
|
CT_DCCP_CLOSEREQ,
|
|
CT_DCCP_CLOSING,
|
|
CT_DCCP_TIMEWAIT,
|
|
CT_DCCP_IGNORE,
|
|
CT_DCCP_INVALID,
|
|
__CT_DCCP_MAX
|
|
};
|
|
#define CT_DCCP_MAX (__CT_DCCP_MAX - 1)
|
|
|
|
enum ct_dccp_roles {
|
|
CT_DCCP_ROLE_CLIENT,
|
|
CT_DCCP_ROLE_SERVER,
|
|
__CT_DCCP_ROLE_MAX
|
|
};
|
|
#define CT_DCCP_ROLE_MAX (__CT_DCCP_ROLE_MAX - 1)
|
|
|
|
#ifdef __KERNEL__
|
|
#include <linux/netfilter/nf_conntrack_tuple_common.h>
|
|
|
|
struct nf_ct_dccp {
|
|
u_int8_t role[IP_CT_DIR_MAX];
|
|
u_int8_t state;
|
|
u_int8_t last_pkt;
|
|
u_int8_t last_dir;
|
|
u_int64_t handshake_seq;
|
|
};
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif /* _NF_CONNTRACK_DCCP_H */
|