23 lines
468 B
C
23 lines
468 B
C
#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,char* send_buf,int send_buflen,struct streaminfo* pstream,int thread_seq);
|
|
|
|
|
|
int init_domain_fd();
|
|
int init_kni_domain();
|
|
int init_kni_tun();
|
|
|
|
void* kni_read_tun(void* arg);
|
|
|
|
int tcp_repair_process(const struct streaminfo* pstream,const void* a_packet,struct kni_pme_info* pmeinfo,int protocol);
|
|
|
|
|
|
|
|
#endif
|
|
|