1 #ifndef __TCPCRYPT_TCPCRYPT_CTL_H__ 2 #define __TCPCRYPT_TCPCRYPT_CTL_H__ 3 4 #include "inc.h" 5 6 #define TCC_IN 0x00000001 7 #define TCC_SET 0x00000002 8 9 struct tc_netstat { 10 struct in_addr tn_sip; 11 uint16_t tn_sport; 12 struct in_addr tn_dip; 13 uint16_t tn_dport; 14 uint16_t tn_len; 15 uint8_t tn_sid[0]; 16 }; 17 18 struct tcpcrypt_ctl { 19 uint32_t tcc_seq; 20 struct in_addr tcc_src; 21 uint16_t tcc_sport; 22 struct in_addr tcc_dst; 23 uint16_t tcc_dport; 24 uint32_t tcc_flags; 25 uint32_t tcc_err; 26 uint32_t tcc_opt; 27 uint32_t tcc_dlen; 28 uint8_t tcc_data[0]; 29 }; 30 31 #endif /* __TCPCRYPT_TCPCRYPT_CTL_H__ */ 32