Check ip before ping

This commit is contained in:
Nick Peng
2018-06-04 23:20:10 +08:00
parent e3d341843d
commit 63dadb4cac
10 changed files with 111 additions and 21 deletions

8
lib/cache.c Normal file
View File

@@ -0,0 +1,8 @@
#include "cache.h"
#include <pthread.h>
struct cache_head {
struct hlist_head hash_head;
int hash_size;
pthread_rwlock_t *rwlock;
};