summaryrefslogtreecommitdiff
path: root/src/arch/x86/linux/process.cc
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2018-04-18 15:00:14 -0400
committerAnthony Gutierrez <anthony.gutierrez@amd.com>2019-01-22 02:12:11 +0000
commit7936e63336a736ca7d857e4fb7578895b249382e (patch)
treeadfa0a7e2087b1059c5d93b48fd71fa95a198d2b /src/arch/x86/linux/process.cc
parentbc74c58eaf55005a6a4b2e67657da4121554943c (diff)
downloadgem5-7936e63336a736ca7d857e4fb7578895b249382e.tar.xz
sim-se: add ability to get/set sock metadata
Add getsockopt, getsockname, setsockname, and getpeername system calls. Change-Id: Ifa1d9a95f15b4fb12859dbfd3c4bd248de2e3d32 Reviewed-on: https://gem5-review.googlesource.com/c/12116 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/arch/x86/linux/process.cc')
-rw-r--r--src/arch/x86/linux/process.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc
index 03a88fc6e..2fe99e0be 100644
--- a/src/arch/x86/linux/process.cc
+++ b/src/arch/x86/linux/process.cc
@@ -273,11 +273,11 @@ static SyscallDesc syscallDescs64[] = {
/* 48 */ SyscallDesc("shutdown", shutdownFunc),
/* 49 */ SyscallDesc("bind", bindFunc),
/* 50 */ SyscallDesc("listen", listenFunc),
- /* 51 */ SyscallDesc("getsockname", unimplementedFunc),
- /* 52 */ SyscallDesc("getpeername", unimplementedFunc),
+ /* 51 */ SyscallDesc("getsockname", getsocknameFunc),
+ /* 52 */ SyscallDesc("getpeername", getpeernameFunc),
/* 53 */ SyscallDesc("socketpair", socketpairFunc<X86Linux64>),
- /* 54 */ SyscallDesc("setsockopt", unimplementedFunc),
- /* 55 */ SyscallDesc("getsockopt", unimplementedFunc),
+ /* 54 */ SyscallDesc("setsockopt", setsockoptFunc),
+ /* 55 */ SyscallDesc("getsockopt", getsockoptFunc),
/* 56 */ SyscallDesc("clone", cloneFunc<X86Linux64>),
/* 57 */ SyscallDesc("fork", unimplementedFunc),
/* 58 */ SyscallDesc("vfork", unimplementedFunc),