On Wed, Feb 11, 2009 at 06:18:48PM -0500, Bob Beers wrote: > I've been following the example > <http://kernelnewbies.org/Simple_UDP_Server>, > and I am having some success -- only tried receiving so far -- > but I am getting an error when I try to insert the following > between the sock_create and bind calls. > > -----------8<------------------ > { > int arg = 1; > > err = kthread->sock->ops->setsockopt(kthread->sock, SOL_SOCKET, > SO_REUSEADDR, > (void *)&arg, sizeof(arg)); > if (err) { > printk(KERN_INFO, "kthread[%d] setsockopt REUSEADDR error: %d\n", > kthread->voipch, err); > } > } > -----------8<------------------ > > Here is the error message: > > ksocket_start: kthread[0] setsockopt REUSEADDR error: -92 > > The packets are recv'd, but why can't I use SO_REUSEADDR ??? Sorry, I don't know, I have no experience in this area at all. good luck, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ