Commit 8267cfb7 authored by Bob Halley's avatar Bob Halley
Browse files

add _hash

parent 56f6fd83
...@@ -27,15 +27,16 @@ typedef struct isc_sockaddr { ...@@ -27,15 +27,16 @@ typedef struct isc_sockaddr {
union { union {
struct sockaddr sa; struct sockaddr sa;
struct sockaddr_in sin; struct sockaddr_in sin;
#ifdef notyet
struct sockaddr_in6 sin6; struct sockaddr_in6 sin6;
#endif } type;
} type;
unsigned int length; /* XXXRTH beginning? */ unsigned int length; /* XXXRTH beginning? */
} isc_sockaddr_t; } isc_sockaddr_t;
isc_boolean_t isc_boolean_t
isc_sockaddr_equal(isc_sockaddr_t *, isc_sockaddr_t *); isc_sockaddr_equal(isc_sockaddr_t *a, isc_sockaddr_t *b);
unsigned int
isc_sockaddr_hash(isc_sockaddr_t *sockaddr, isc_boolean_t address_only);
ISC_LANG_ENDDECLS ISC_LANG_ENDDECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment