From 4be1fd62131f7e186e6f92f1bb5a356dc1ac1951 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Dec 2023 20:12:44 +0100 Subject: user/libc: reorganize net stuff, basic hosts-only gethostbyname() /usr/share/hosts because i don't have /etc/ yet and i don't feel like creating it. --- src/cmd/netstack/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/netstack') diff --git a/src/cmd/netstack/util.c b/src/cmd/netstack/util.c index 68092aa..093c5ac 100644 --- a/src/cmd/netstack/util.c +++ b/src/cmd/netstack/util.c @@ -43,6 +43,7 @@ uint16_t ip_checksumphdr( } int ip_parse(const char *s, uint32_t *dest) { + // TODO use inet_aton if (!s) return -1; uint32_t ip = strtol(s, (char**)&s, 0); -- cgit v1.2.3