diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-08 12:58:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-08 12:58:17 +0000 |
commit | f6879caa0447a5fd65ff07d210146393d27cb88e (patch) | |
tree | 9d7ed658d36a930b207ef577c2066c2bc08beb13 /src/common/address.c | |
parent | 39f88641c100b4a3f486275a4e6b577fd6333b7b (diff) | |
download | tor-f6879caa0447a5fd65ff07d210146393d27cb88e.tar.gz tor-f6879caa0447a5fd65ff07d210146393d27cb88e.zip |
Try once again to make BSD compilation happy.
svn:r16474
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/address.c b/src/common/address.c index ac4ae041d8..978d11e914 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -635,6 +635,13 @@ tor_addr_from_ipv6_bytes(tor_addr_t *dest, const char *ipv6_bytes) memcpy(dest->addr.in6_addr.s6_addr, ipv6_bytes, 16); } +/** DOCDOC */ +void +tor_addr_from_in6(tor_addr_t *dest, const struct in6_addr *in6) +{ + tor_addr_from_ipv6_bytes(dest, (const char*)in6->s6_addr); +} + /** Copy a tor_addr_t from <b>src</b> to <b>dest</b>. */ void |