tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel level tcp call to connect

On Thu, 11 Dec 2008, David Young wrote:

> On Tue, Dec 09, 2008 at 03:28:24PM -0500, Eddy Quicksall wrote:
> >
> > I need to connect in kernel level. I see from tcp/ip illustrated 15.32 a
> > "connect" function that calls soconnect. What I'm wondering is if this has
> > changed much over the years and maybe there is a better piece of code to
> > look at. Does anyone know?
> soconnect() should work.

do_sys_connect() and friends might be more useful, since they already
handle all the necessary locking?  see kern/uipc_syscalls.c for details
but they seem to follow the userland API..


Home | Main Index | Thread Index | Old Index