summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-07-08 10:18:07 +0000
committerphk <phk@FreeBSD.org>2004-07-08 10:18:07 +0000
commit64c32415ce9ffa8cd1c9daad2badb08c90241e48 (patch)
tree1495cb5f7796757d544681a4a6667fade7f6f32a
parente04ea3134c2db305c59b35c2cbd2d7bbd18f0d81 (diff)
downloadFreeBSD-src-64c32415ce9ffa8cd1c9daad2badb08c90241e48.zip
FreeBSD-src-64c32415ce9ffa8cd1c9daad2badb08c90241e48.tar.gz
Use a couple of regular kernel entry points, rather than COMPAT_43
entry points.
-rw-r--r--sys/compat/linux/linux_socket.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index ddde801..465c573 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -855,11 +855,13 @@ static int
linux_send(struct thread *td, struct linux_send_args *args)
{
struct linux_send_args linux_args;
- struct osend_args /* {
+ struct sendto_args /* {
int s;
caddr_t buf;
int len;
int flags;
+ caddr_t to;
+ int tolen;
} */ bsd_args;
int error;
@@ -870,7 +872,9 @@ linux_send(struct thread *td, struct linux_send_args *args)
bsd_args.buf = linux_args.msg;
bsd_args.len = linux_args.len;
bsd_args.flags = linux_args.flags;
- return (osend(td, &bsd_args));
+ bsd_args.to = NULL;
+ bsd_args.tolen = 0;
+ return (sendto(td, &bsd_args));
}
struct linux_recv_args {
@@ -884,11 +888,13 @@ static int
linux_recv(struct thread *td, struct linux_recv_args *args)
{
struct linux_recv_args linux_args;
- struct orecv_args /* {
+ struct recvfrom_args /* {
int s;
caddr_t buf;
int len;
int flags;
+ struct sockaddr *from;
+ socklen_t fromlenaddr;
} */ bsd_args;
int error;
@@ -899,7 +905,9 @@ linux_recv(struct thread *td, struct linux_recv_args *args)
bsd_args.buf = linux_args.msg;
bsd_args.len = linux_args.len;
bsd_args.flags = linux_args.flags;
- return (orecv(td, &bsd_args));
+ bsd_args.from = NULL;
+ bsd_args.fromlenaddr = 0;
+ return (recvfrom(td, &bsd_args));
}
static int
OpenPOWER on IntegriCloud