Applied patch from Mats Erik Andersson <mats.andersson@gisladisker.se>
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427852#30 Adds support for IPv6 Also fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477928 (minor typo) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595169 (performance problem with address hashing) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598367 (failing link address detection for GNU/kfreebsd)
This commit is contained in:
11
addr_hash.h
11
addr_hash.h
@@ -12,11 +12,18 @@
|
||||
#include "hash.h"
|
||||
|
||||
typedef struct {
|
||||
int af;
|
||||
unsigned short int protocol;
|
||||
unsigned short int src_port;
|
||||
struct in_addr src;
|
||||
union {
|
||||
struct in_addr src;
|
||||
struct in6_addr src6;
|
||||
};
|
||||
unsigned short int dst_port;
|
||||
struct in_addr dst;
|
||||
union {
|
||||
struct in_addr dst;
|
||||
struct in6_addr dst6;
|
||||
};
|
||||
} addr_pair;
|
||||
|
||||
typedef addr_pair key_type; /* index into hash table */
|
||||
|
||||
Reference in New Issue
Block a user