#ifndef KNI_CONNECT_H #define KNI_CONNECT_H #define KNI_SENDFD_NUM 2 int kni_send_fds(int socket, int *fds, int n,int protocol); char tun_write_data(int fd, const char* send_buf, size_t send_buflen,struct streaminfo* pstream,int thread_seq,struct kni_pme_info* pmeinfo); char tun_write_data_listq(int fd,char* send_buf,int send_buflen,int thread_seq); int kni_unixdomain_create(); int init_kni_unixdomain(); int init_kni_tun(); void* pthread_process_tun(void* arg); char kni_add_lqueue(int addrtype,int thread_seq,char* send_buf,int send_buflen,const struct streaminfo* pstream,int index,struct kni_pme_info* pmeinfo); int tcp_repair_process(const struct streaminfo* pstream,const void* a_packet,struct kni_pme_info* pmeinfo,int protocol); #endif