summaryrefslogtreecommitdiff
path: root/socket.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-27 22:17:24 +0200
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commitd50d18c9da3a125f0196bec89802dec1c5b0b800 (patch)
treed9a4e74906c5ab51708d148ad3728cc155a9893d /socket.h
parent4f9ed7087cb58683d9423ab771ad76b31dac5514 (diff)
Kernel/LibC/Networking: Be able to send UDP messages
Now it can send UDP messages to a specific IP address and libc has enough to create a basic UDP ECHO server, that is kinda cool.
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index 168386e..bb278c1 100644
--- a/socket.h
+++ b/socket.h
@@ -22,6 +22,7 @@ typedef struct {
int domain;
int type;
int protocol;
+ void *child;
// UNIX socket
char *path;
@@ -53,6 +54,7 @@ struct sockaddr_in {
sa_family_t sin_family;
union {
uint32_t s_addr;
+ uint8_t a[4];
} sin_addr;
uint16_t sin_port;
};