The bitcoin code packs addresses backwards, so we map it here. */
| 76 | |
| 77 | /* The bitcoin code packs addresses backwards, so we map it here. */ |
| 78 | static unsigned int GetByte(const struct wireaddr *addr, int n) |
| 79 | { |
| 80 | size_t off = IPv4In6(addr); |
| 81 | assert(off + n < addr->addrlen); |
| 82 | return addr->addr[addr->addrlen - 1 - off - n]; |
| 83 | } |
| 84 | |
| 85 | static bool IsRFC1918(const struct wireaddr *addr) |
| 86 | { |