Changeset 525 for branches/garlicat/src/ocatv6conv.c
- Timestamp:
- 11/13/09 13:11:06 (3 years ago)
- File:
-
- 1 edited
-
branches/garlicat/src/ocatv6conv.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/garlicat/src/ocatv6conv.c
r500 r525 27 27 28 28 #include "ocat.h" 29 #include "ocat_netdesc.h" 29 30 30 31 static const char BASE32[] = "abcdefghijklmnopqrstuvwxyz234567"; … … 40 41 50 51 52 53 54 55 56 57 58 59 5a */ 41 42 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }; 42 static const struct in6_addr tor_prefix_ = TOR_PREFIX;43 43 44 44 45 45 int has_tor_prefix(const struct in6_addr *addr) 46 46 { 47 return memcmp(addr, & tor_prefix_, 6) == 0;47 return memcmp(addr, &NDESC(prefix), 6) == 0; 48 48 } 49 49 … … 51 51 void set_tor_prefix(struct in6_addr *addr) 52 52 { 53 memcpy(addr, & tor_prefix_, 6);53 memcpy(addr, &NDESC(prefix), 6); 54 54 } 55 55
Note: See TracChangeset
for help on using the changeset viewer.
