| 34 | } |
| 35 | |
| 36 | static bool IsRFC3964(const struct wireaddr *addr) |
| 37 | { |
| 38 | return addr->type == ADDR_TYPE_IPV6 |
| 39 | && addr->addr[0] == 0x20 && addr->addr[1] == 0x02; |
| 40 | } |
| 41 | |
| 42 | /* Return offset of IPv4 address, or 0 == not an IPv4 */ |
| 43 | static size_t IPv4In6(const struct wireaddr *addr) |