version 1.1, 2012/02/21 16:57:34
|
version 1.1.1.2, 2016/10/18 14:04:50
|
Line 12
|
Line 12
|
#include "hash.h" |
#include "hash.h" |
|
|
typedef struct { |
typedef struct { |
|
int af; |
unsigned short int protocol; |
unsigned short int protocol; |
unsigned short int src_port; |
unsigned short int src_port; |
struct in_addr src; | union { |
| struct in_addr src; |
| struct in6_addr src6; |
| }; |
unsigned short int dst_port; |
unsigned short int dst_port; |
struct in_addr dst; | union { |
| struct in_addr dst; |
| struct in6_addr dst6; |
| }; |
} addr_pair; |
} addr_pair; |
|
|
typedef addr_pair key_type; /* index into hash table */ |
typedef addr_pair key_type; /* index into hash table */ |