kni初始化失败直接exit

This commit is contained in:
崔一鸣
2019-09-07 20:21:50 +08:00
parent cd7408e155
commit 8fd5c4417d
3 changed files with 9 additions and 7 deletions

View File

@@ -1,7 +1,4 @@
#include "kni_utils.h"
#include <sys/ioctl.h>
#include <netinet/ip6.h>
#include <net/if.h>
int kni_addr_trans_v4(struct stream_tuple4_v4 *tuple4, char *output, int len){
char saddr[INET_ADDRSTRLEN];