Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 17:00:30 +0400
From:      Chagin Dmitry <dchagin@freebsd.org>
To:        Adam Vande More <amvandemore@gmail.com>
Cc:        "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>
Subject:   Re: Lin?ux?u?la?tor problem
Message-ID:  <20130520130030.GA3370@dchagin.static.corbina.net>
In-Reply-To: <CA%2BtpaK3dK6on6w2kAagYkpAJ=AXfxOoNMy2ESC_qmgYre-am3Q@mail.gmail.com>
References:  <CA%2BtpaK05S8UZLkWS1rvnzV%2BR4JR1vtf7Z7xdcAY1PBYHk2SZhA@mail.gmail.com> <20130519193536.GA7805@dchagin.static.corbina.net> <CA%2BtpaK3dK6on6w2kAagYkpAJ=AXfxOoNMy2ESC_qmgYre-am3Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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@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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlGaHm4ACgkQ0t2Tb3OO/O2wZQCdGiXsBYqrNsG/tqXOjUEF8iPs
K9kAnRxuCuJd+5p74EjwtGGpUED1CSwb
=zKP7
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130520130030.GA3370>