>| >Val needs to point to a userland buffer. Like: >| tnx. how about this? >That will work, but I liked the other code you posted better :-) hmm. i really don't want to have code duplicate (once native code changes, we need to touch emulation layer), so i'll go ahead with sys_setsockopt() version. itojun