chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipv6: Support printing, comparing, etc. IPv6 addresses
[secnet.git]
/
secnet.h
diff --git
a/secnet.h
b/secnet.h
index 3fba00f406862d14abe59e97e54dad5cdfe12b58..628a7555f3e38213eb44efe883fe1250dd8dbf7f 100644
(file)
--- a/
secnet.h
+++ b/
secnet.h
@@
-33,6
+33,9
@@
typedef _Bool bool_t;
union iaddr {
struct sockaddr sa;
struct sockaddr_in sin;
+#ifdef CONFIG_IPV6
+ struct sockaddr_in6 sin6;
+#endif
};
#define ASSERT(x) do { if (!(x)) { fatal("assertion failed line %d file " \