Ignore:
Timestamp:
11/13/09 13:11:06 (3 years ago)
Author:
eagle
Message:

Garlicat, 1st try

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/garlicat/src/ocatv6conv.c

    r500 r525  
    2727 
    2828#include "ocat.h" 
     29#include "ocat_netdesc.h" 
    2930 
    3031static const char BASE32[] = "abcdefghijklmnopqrstuvwxyz234567"; 
     
    4041      50  51  52  53  54  55  56  57  58  59  5a */ 
    4142      15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 };   
    42 static const struct in6_addr tor_prefix_ = TOR_PREFIX; 
    4343 
    4444 
    4545int has_tor_prefix(const struct in6_addr *addr) 
    4646{ 
    47    return memcmp(addr, &tor_prefix_, 6) == 0; 
     47   return memcmp(addr, &NDESC(prefix), 6) == 0; 
    4848} 
    4949 
     
    5151void set_tor_prefix(struct in6_addr *addr) 
    5252{ 
    53    memcpy(addr, &tor_prefix_, 6); 
     53   memcpy(addr, &NDESC(prefix), 6); 
    5454} 
    5555 
Note: See TracChangeset for help on using the changeset viewer.