Lin?ux?u?la?tor problem

Chagin Dmitry dchagin at freebsd.org
Mon May 20 13:00:35 UTC 2013


On Sun, May 19, 2013 at 06:37:39PM -0500, Adam Vande More wrote:
> On Sun, May 19, 2013 at 2:35 PM, Chagin Dmitry <dchagin at freebsd.org> wrote:
> > please, try with:
> >
> > diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
> > index a66a62d..cae7d71 100644
> > --- a/sys/compat/linux/linux_socket.c
> > +++ b/sys/compat/linux/linux_socket.c
> > @@ -645,6 +645,9 @@ linux_socket(struct thread *td, struct linux_socket_args *args)
> >         } */ bsd_args;
> >         int retval_socket, socket_flags;
> >
> > +       uprintf("socket %d, %d, %d", args->domain, args->type,
> > +           args->protocol);
> > +
> >         bsd_args.protocol = args->protocol;
> >         socket_flags = args->type & ~LINUX_SOCK_TYPE_MASK;
> >         if (socket_flags & ~(LINUX_SOCK_CLOEXEC | LINUX_SOCK_NONBLOCK))
> >
> >
> > and show result.
> 
> It gave the output:
> 
> socket 2, 10, 768
> 

ie, type = 10 = SOCK_PACKET. deprecated even in Linux.
unfortunately, we have never had this type of socket (

> 
> --
> Adam Vande More

-- 
Have fun!
chd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20130520/d9504176/attachment.sig>


More information about the freebsd-emulation mailing list