summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authordzwdz2023-12-25 20:12:44 +0100
committerdzwdz2023-12-25 20:12:44 +0100
commit4be1fd62131f7e186e6f92f1bb5a356dc1ac1951 (patch)
tree54de3a2d99fe9d6e93ad45c5107aff5420f9900d /src/cmd
parentb9f5f92bff69059471a76e73539780eedb356455 (diff)
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.
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/netstack/util.c1
1 files changed, 1 insertions, 0 deletions
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);