NetBSD-Users archive

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

RE: kernel level tcp call to connect



Thanks, I copied the tcp/ip illustrated example and added the needed
argument. The call to sockargs returns error=14. I don't know where that
error is defined.

Any ideas?

Eddy

-----Original Message-----
From: Arnaud Lacombe [mailto:lacombar%gmail.com@localhost] 
Sent: Tuesday, December 09, 2008 5:37 PM
To: Eddy Quicksall
Subject: Re: kernel level tcp call to connect

On Tue, Dec 9, 2008 at 3:28 PM, Eddy Quicksall
<quicksall_temp%bellsouth.net@localhost> 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?
>
yes, soconnect() is the way to go. It only got an extra argument (the
current lwp) over the years.

 - Arnaud



Home | Main Index | Thread Index | Old Index