Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 10:53:05 -0700
From:      Vijay Singh <vijju.singh@gmail.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   VIMAGE and socreate
Message-ID:  <CALCNsJTd9GHBNTvdWJmi%2BLbiCMqu9hf0RNuK04TbDT7sDC1PsA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
In 8.3, socreate() does:

        so = soalloc(CRED_TO_VNET(cred));

Is there a reason why we don't do soalloc(curvnet) here? Since
CURVNET_SET() doesn't update the vnet in the thread ucred, which is passed
into socreate(), it doesn't take effect for socket creations.

Any ideas?

-vijay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCNsJTd9GHBNTvdWJmi%2BLbiCMqu9hf0RNuK04TbDT7sDC1PsA>