diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-20 20:33:03 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-20 20:33:03 +0200 |
commit | ae470ec9558e5903ff68bd3cf95e1355e5a13c1c (patch) | |
tree | b80d21b27d1c1d7fe62d0f77db3766b07c5a2008 /Kernel/Syscall.h | |
parent | f008156dbf30a892827f3b6bf7203680533b2eb9 (diff) | |
download | serenity-ae470ec9558e5903ff68bd3cf95e1355e5a13c1c.zip |
Kernel: Add getpeername() syscall, and fix getsockname() behavior.
We were copying the raw IPv4 addresses into the wrong part of sockaddr_in,
and we didn't set sa_family or sa_port.
Diffstat (limited to 'Kernel/Syscall.h')
-rw-r--r-- | Kernel/Syscall.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h index 7acd3124bd..2d093f6a74 100644 --- a/Kernel/Syscall.h +++ b/Kernel/Syscall.h @@ -105,6 +105,7 @@ __ENUMERATE_SYSCALL(writev) \ __ENUMERATE_SYSCALL(beep) \ __ENUMERATE_SYSCALL(getsockname) \ + __ENUMERATE_SYSCALL(getpeername) \ namespace Syscall { |