From a1770aac3af3b6b893af9937e0d0712902eeb9e6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 13 Nov 2020 19:13:29 +0100 Subject: Removed some useless code I spent several hours tracing the bug that followed me since months, but I haven't found it yet :( Where are you, HEISENBUG?! --- kernel/features/net.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kernel/features/net.c') diff --git a/kernel/features/net.c b/kernel/features/net.c index dae7d2d..91702d6 100644 --- a/kernel/features/net.c +++ b/kernel/features/net.c @@ -53,13 +53,13 @@ struct socket *socket_new(struct list *list) * Helper functions */ -u16 next_port(void) +static u16 next_port(void) { static u16 port = 49152; return port++; } -int same_net(u32 ip_addr) +static int same_net(u32 ip_addr) { return (ip_addr & subnet_mask) == (gateway_addr & subnet_mask); } @@ -672,7 +672,8 @@ void net_install(void) // Request struct socket *socket = net_open(S_TCP); - if (net_connect(socket, ip(10, 0, 0, 33), 80)) + // if (net_connect(socket, ip(216, 58, 206, 227), 80)) // TODO: Google! + if (net_connect(socket, ip(216, 58, 206, 227), 80)) net_send(socket, strdup(http_req), strlen(http_req)); else print("Couldn't connect!\n"); -- cgit v1.2.3