diff options
author | Marvin Borner | 2020-11-13 19:13:29 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-13 19:13:29 +0100 |
commit | a1770aac3af3b6b893af9937e0d0712902eeb9e6 (patch) | |
tree | c45df5cb814f54901121bc63ba6b9832003aa700 /kernel/features/net.c | |
parent | 8d08b8e80440b310e623c0ae397065bf28d94d1e (diff) |
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?!
Diffstat (limited to 'kernel/features/net.c')
-rw-r--r-- | kernel/features/net.c | 7 |
1 files changed, 4 insertions, 3 deletions
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"); |