diff options
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -19,13 +19,13 @@ | |||
| 19 | /* Libowfat */ | 19 | /* Libowfat */ |
| 20 | #include "io.h" | 20 | #include "io.h" |
| 21 | #include "iob.h" | 21 | #include "iob.h" |
| 22 | #include "ip6.h" | ||
| 23 | #include "socket.h" | 22 | #include "socket.h" |
| 24 | 23 | ||
| 25 | /* Opentracker */ | 24 | /* Opentracker */ |
| 25 | #include "ot_ip.h" | ||
| 26 | #include "ot_mutex.h" | 26 | #include "ot_mutex.h" |
| 27 | #include "ot_scan.h" | ||
| 28 | #include "ot_random.h" | 27 | #include "ot_random.h" |
| 28 | #include "ot_scan.h" | ||
| 29 | #include "ot_stats.h" | 29 | #include "ot_stats.h" |
| 30 | #include "ot_vector.h" | 30 | #include "ot_vector.h" |
| 31 | #include "trackerlogic.h" | 31 | #include "trackerlogic.h" |
| @@ -92,7 +92,7 @@ void livesync_bind_mcast(ot_ip6 ip, uint16_t port) { | |||
| 92 | char tmpip[4] = {0, 0, 0, 0}; | 92 | char tmpip[4] = {0, 0, 0, 0}; |
| 93 | char *v4ip; | 93 | char *v4ip; |
| 94 | 94 | ||
| 95 | if (!ip6_isv4mapped(ip)) | 95 | if (!ip_is_v4mapped(ip)) |
| 96 | exerr("v6 mcast support not yet available."); | 96 | exerr("v6 mcast support not yet available."); |
| 97 | v4ip = ip + 12; | 97 | v4ip = ip + 12; |
| 98 | 98 | ||
| @@ -539,14 +539,14 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) { | |||
| 539 | ++s; | 539 | ++s; |
| 540 | if (*s == '[') | 540 | if (*s == '[') |
| 541 | ++s, ++bracket; /* for v6 style notation */ | 541 | ++s, ++bracket; /* for v6 style notation */ |
| 542 | if (!(off = scan_ip6(s, ip))) | 542 | if (!(off = ip_scan(s, ip))) |
| 543 | return 0; | 543 | return 0; |
| 544 | s += off; | 544 | s += off; |
| 545 | if (*s == 0 || isspace(*s)) | 545 | if (*s == 0 || isspace(*s)) |
| 546 | return s - src; | 546 | return s - src; |
| 547 | if (*s == ']' && bracket) | 547 | if (*s == ']' && bracket) |
| 548 | ++s; | 548 | ++s; |
| 549 | if (!ip6_isv4mapped(ip)) { | 549 | if (!ip_is_v4mapped(ip)) { |
| 550 | if ((bracket && *(s) != ':') || (*(s) != '.')) | 550 | if ((bracket && *(s) != ':') || (*(s) != '.')) |
| 551 | return 0; | 551 | return 0; |
| 552 | s++; | 552 | s++; |
