On Wed, Jul 26, 2006 at 09:21:07AM -0300, JuanJo Ciarlante wrote: > Either use: > /* must use SOL_IP because we are directly calling proto impl. */ > sock->ops->setsockopt(sock, SOL_IP, ...); > > or: > /* use "generic" setsockopt entry point */ > sock_setsockopt(sock, SOL_SOCKET, ...); > > or directly ride the horse: > sock->sk->sk_reuse=1; > > BTW don't forget to wrap all "syscall-like" calling with else you'll > get EFAULTs: > ERRATA (missing get_fs() call): > mm_segment_t oldfs; oldfs=get_fs(KERNEL_DS); > set_fs(KERNEL_DS); > : > /* syscall'ing-alike ...*/ > : > set_fs(oldfs); -- --Juanjo # Juan Jose Ciarlante (JuanJo) jjo ;at; mendoza.gov.ar # # GnuPG Public Key: gpg --keyserver wwwkeys.eu.pgp.net --recv-key 66727177 # # Key fingerprint: 0D2F 3E5D 8B5C 729E 0560 F453 A3F7 E249 6672 7177 # -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/