projects
/
darkstat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Small IPv6 corrections and an IPv6 hash function.
[darkstat]
/
hosts_db.h
diff --git
a/hosts_db.h
b/hosts_db.h
index
a5686a1
..
41141be
100644
(file)
--- a/
hosts_db.h
+++ b/
hosts_db.h
@@
-14,7
+14,11
@@
struct hashtable;
struct host {
- in_addr_t ip;
+ union {
+ in_addr_t ip;
+ struct in6_addr ip6;
+ };
+ sa_family_t af;
char *dns;
uint8_t mac_addr[6];
time_t last_seen;