Signed-off-by: Daniel Lenski <dlenski@gmail.com>
#endif
#ifndef HAVE_INET_ATON
+/* XX: unlike "real" inet_aton(), inet_pton() only accepts dotted-decimal notation, not
+ * looser/rarer formats like 32-bit decimal values. For example, inet_aton() accepts both
+ * "127.0.0.1" and "2130706433" as equivalent, but inet_pton() only accepts the former.
+ */
int openconnect__inet_aton(const char *cp, struct in_addr *addr)
{
return inet_pton(AF_INET, cp, addr);