summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-26 18:13:27 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-26 18:13:27 +0100
commit78c3cebc389a2b0d426d74900a65b8656edb426d (patch)
tree122003fecc6b53c2dde6393896a852e3689900ff /proxy.c
parent6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 (diff)
Third run of making variable and function names more readable, integer scans and ip parsers
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy.c b/proxy.c
index 0cac20c..a5c6bb7 100644
--- a/proxy.c
+++ b/proxy.c
@@ -507,7 +507,7 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) {
507 ++s; 507 ++s;
508 if (*s == '[') 508 if (*s == '[')
509 ++s, ++bracket; /* for v6 style notation */ 509 ++s, ++bracket; /* for v6 style notation */
510 if (!(off = ip_scan(s, ip))) 510 if (!(off = ip_parse(s, ip)))
511 return 0; 511 return 0;
512 s += off; 512 s += off;
513 if (*s == 0 || isspace(*s)) 513 if (*s == 0 || isspace(*s))
@@ -522,7 +522,7 @@ static int scan_ip6_port(const char *src, ot_ip6 ip, uint16_t *port) {
522 if (*(s++) != ':') 522 if (*(s++) != ':')
523 return 0; 523 return 0;
524 } 524 }
525 if (!(off = scan_udec(s, &value, 65535))) 525 if (!(off = scan_uint(s, &value, 65535)))
526 return 0; 526 return 0;
527 *port = (uint16_t)value; 527 *port = (uint16_t)value;
528 return off + s - src; 528 return off + s - src;