text: Hi Folks, I've had a patch in my tree for this for a while now ... fixes a problem I was seeing with linux clearcase ... Here's a diff of mine vs. this commit - Index: linux_socket.c =================================================================== RCS file: /usr/dfly/repo/src/sys/emulation/linux/linux_socket.c,v retrieving revision 1.17 retrieving revision 1.15.2.14 diff -u -r1.17 -r1.15.2.14 --- linux_socket.c 5 Apr 2004 00:06:02 -0000 1.17 +++ linux_socket.c 9 Jan 2004 21:25:45 -0000 1.15.2.14 @@ -677,8 +676,13 @@ sopt.sopt_valsize = sizeof(optval); sopt.sopt_td = NULL; - if (kern_getsockopt(linux_args.s, &sopt) != 0) - optval = 0; + error = kern_getsockopt(linux_args.s, &sopt); + + if (error == ENOPROTOOPT) /* not a rawip proto socket */ + error = optval = 0; /* IP_HDRINCL is not set */ + + if (error) + return (error); if (optval == 0) { /* I kind of like mine a bit more - it's a bit more precise in handling this specific error, and allows optval to be set and handled for other cases below. Andrew. Matthew Dillon wrote: > d > > >