/usr/include/libnetfilter_conntrack/libnetfilter_conntrack_tcp.h is in libnetfilter-conntrack-dev 1.0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | #ifndef _LIBNETFILTER_CONNTRACK_TCP_H_
#define _LIBNETFILTER_CONNTRACK_TCP_H_
#ifdef __cplusplus
extern "C" {
#endif
enum tcp_state {
TCP_CONNTRACK_NONE,
TCP_CONNTRACK_SYN_SENT,
TCP_CONNTRACK_SYN_RECV,
TCP_CONNTRACK_ESTABLISHED,
TCP_CONNTRACK_FIN_WAIT,
TCP_CONNTRACK_CLOSE_WAIT,
TCP_CONNTRACK_LAST_ACK,
TCP_CONNTRACK_TIME_WAIT,
TCP_CONNTRACK_CLOSE,
TCP_CONNTRACK_LISTEN, /* obsolete */
#define TCP_CONNTRACK_SYN_SENT2 TCP_CONNTRACK_LISTEN
TCP_CONNTRACK_MAX,
TCP_CONNTRACK_IGNORE
};
/* WARNING: do not use these flags in your new applications, they are obsolete
* and we keep them here to avoid breaking backward compatibility. */
enum tcp_flags {
TCP_ORIG_SPORT_BIT = 0,
TCP_ORIG_SPORT = (1 << TCP_ORIG_SPORT_BIT),
TCP_ORIG_DPORT_BIT = 1,
TCP_ORIG_DPORT = (1 << TCP_ORIG_DPORT_BIT),
TCP_REPL_SPORT_BIT = 2,
TCP_REPL_SPORT = (1 << TCP_REPL_SPORT_BIT),
TCP_REPL_DPORT_BIT = 3,
TCP_REPL_DPORT = (1 << TCP_REPL_DPORT_BIT),
TCP_MASK_SPORT_BIT = 4,
TCP_MASK_SPORT = (1 << TCP_MASK_SPORT_BIT),
TCP_MASK_DPORT_BIT = 5,
TCP_MASK_DPORT = (1 << TCP_MASK_DPORT_BIT),
TCP_STATE_BIT = 6,
TCP_STATE = (1 << TCP_STATE_BIT),
TCP_EXPTUPLE_SPORT_BIT = 7,
TCP_EXPTUPLE_SPORT = (1 << TCP_EXPTUPLE_SPORT_BIT),
TCP_EXPTUPLE_DPORT_BIT = 8,
TCP_EXPTUPLE_DPORT = (1 << TCP_EXPTUPLE_DPORT_BIT)
};
#ifdef __cplusplus
}
#endif
#endif
|