summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/kernel/net/net.h1
-rw-r--r--include/user/net/net_syscalls.h16
-rw-r--r--nids/360/SceNetPs.yml5
3 files changed, 22 insertions, 0 deletions
diff --git a/include/kernel/net/net.h b/include/kernel/net/net.h
index 5670c96..a4d0c7a 100644
--- a/include/kernel/net/net.h
+++ b/include/kernel/net/net.h
@@ -539,6 +539,7 @@ typedef struct SceNetIcmpHeader {
int sceNetSocket(const char *name, int domain, int type, int protocol);
int sceNetAccept(int s, SceNetSockaddr *addr, unsigned int *addrlen);
int sceNetBind(int s, const SceNetSockaddr *addr, unsigned int addrlen);
+int sceNetConnect(int s, const SceNetSockaddr *name, unsigned int namelen);
int sceNetListen(int s, int backlog);
int sceNetRecvfrom(int s, void *buf, unsigned int len, int flags, SceNetSockaddr *from, unsigned int *fromlen);
int sceNetSendto(int s, const void *msg, unsigned int len, int flags, const SceNetSockaddr *to, unsigned int tolen);
diff --git a/include/user/net/net_syscalls.h b/include/user/net/net_syscalls.h
new file mode 100644
index 0000000..6a6693d
--- /dev/null
+++ b/include/user/net/net_syscalls.h
@@ -0,0 +1,16 @@
+#ifndef _PSP2_NET_NET_SYSCALLS_H_
+#define _PSP2_NET_NET_SYSCALLS_H_
+
+#include <psp2/net/net.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int sceNetConnectForSyscalls(int s, const SceNetSockaddr *name, unsigned int namelen);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_NET_NET_SYSCALLS_H_ */
diff --git a/nids/360/SceNetPs.yml b/nids/360/SceNetPs.yml
index dd4ab8d..f55aeef 100644
--- a/nids/360/SceNetPs.yml
+++ b/nids/360/SceNetPs.yml
@@ -7,9 +7,14 @@ modules:
functions:
sceNetAccept: 0x880A5423
sceNetBind: 0x84AB650F
+ sceNetConnect: 0x13491DA1
sceNetListen: 0x080C7992
sceNetRecvfrom: 0x49B1669C
sceNetSendto: 0xAB746734
sceNetSetsockopt: 0x4BF5FAB4
sceNetSocket: 0xEB95B024
sceNetSocketClose: 0x21F4428D
+ SceNetPsForSyscalls:
+ nid: 0x2CBED2C6
+ functions:
+ sceNetConnectForSyscalls: 0x14A4DE52