Re: Kernel level inet socket handling

2001-08-24 Thread Julian Elischer
John Polstra wrote: In article [EMAIL PROTECTED], Julian Elischer [EMAIL PROTECTED] wrote: [concerning my fixes for ng_ksocket nodes to handle TCP operations] If you send me the files I can diff them and commit them. (of course you are welcome to do it yourself at your own pace if

Kernel level inet socket handling

2001-08-23 Thread Foldi Tamas
Cheers! My problem is the following: I want to do high level network handling from a kernel thread (as in inet socket handling, connect/bind, etc). I couldn't find any documentation about this, which would be of practical help. If someone knows about something like this (text, sources,

Re: Kernel level inet socket handling

2001-08-23 Thread Sandeep Joshi
I believe the functions you need are in kern/uipc_socket.c (socreate, sosend, soreceive, soclose, sosetopt..) Alternately, you could also do as follows, for each of the above functions so-so_proto-pr_usrreqs-pru_sosend(so, 0, uio, 0, 0, 0, uio-uio_procp) I am not

Re: Kernel level inet socket handling

2001-08-23 Thread Julian Elischer
use netgraph there is a netgraph node for iternal manipulation of sockets. if you make your module netgrah compatible, then you can just use it.. Jo nappat.. On 23 Aug 2001, Foldi Tamas wrote: Cheers! My problem is the following: I want to do high level network handling from a kernel

Re: Kernel level inet socket handling

2001-08-23 Thread Julian Elischer
The netgraph 'accept' handling IS implemented by someone.. I can find it and add it if needed.. On Thu, 23 Aug 2001, Sandeep Joshi wrote: I believe the functions you need are in kern/uipc_socket.c (socreate, sosend, soreceive, soclose, sosetopt..) Alternately, you could also do as

Re: Kernel level inet socket handling

2001-08-23 Thread John Polstra
In article [EMAIL PROTECTED], Julian Elischer [EMAIL PROTECTED] wrote: The netgraph 'accept' handling IS implemented by someone.. I can find it and add it if needed.. I've got that all fixed, and will commit it as soon as I can -- within the next couple of weeks. John -- John Polstra

Re: Kernel level inet socket handling

2001-08-23 Thread Julian Elischer
If you send me the files I can diff them and commit them. (of course you are welcome to do it yourself at your own pace if you wish) On Thu, 23 Aug 2001, John Polstra wrote: In article [EMAIL PROTECTED], Julian Elischer [EMAIL PROTECTED] wrote: The netgraph 'accept' handling IS

Re: Kernel level inet socket handling

2001-08-23 Thread John Polstra
In article [EMAIL PROTECTED], Julian Elischer [EMAIL PROTECTED] wrote: [concerning my fixes for ng_ksocket nodes to handle TCP operations] If you send me the files I can diff them and commit them. (of course you are welcome to do it yourself at your own pace if you wish) Hmm, I just might