kern/134276: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts

Thomas Mueller tmueller at sysgo.com
Mon May 11 08:32:38 UTC 2009


On Mon, 11 May 2009 09:20:45 +0200, Thomas Mueller wrote:
> On Sat, 9 May 2009 12:06:09 +0400, Chagin Dmitry wrote:
> > 
> > Please, apply this two patches.
> > 
> > http://people.freebsd.org/~dchagin/patches/commit-4952ce8.patch
> 
> In linux_setsockopt() when calling kern_setsockopt() for
> SO_RCVTIMEO/SO_SNDTIMEO you need to pass 'name' instead of
> 'bsd_args.name' since the latter is still undefined at that point:
> 
> --- commit-4952ce8.patch.orig   2009-05-11 09:07:56.000000000 +0200
> +++ commit-4952ce8.patch        2009-05-11 09:08:09.000000000 +0200
> @@ -39,7 +39,7 @@
>  +                      tv.tv_sec = linux_tv.tv_sec;
>  +                      tv.tv_usec = linux_tv.tv_usec;
>  +                      return (kern_setsockopt(td, bsd_args.s, bsd_args.level,
> -+                          bsd_args.name, &tv, UIO_SYSSPACE, sizeof(tv)));
> ++                          name, &tv, UIO_SYSSPACE, sizeof(tv)));
>  +                      break;
>  +              default:
>  +                      break;
> 
> > http://people.freebsd.org/~dchagin/patches/commit-6355ebf.patch

With the above shown modification I was able to successfully run the
LM-X License Manager on 7.2-STABLE with both amd64 and i386.

-- 
Thomas Mueller


More information about the freebsd-emulation mailing list