From owner-freebsd-net@freebsd.org Tue Jun 6 20:27:40 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 008A9BF4302 for ; Tue, 6 Jun 2017 20:27:40 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3D0479405 for ; Tue, 6 Jun 2017 20:27:39 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by mail-ua0-x233.google.com with SMTP id q15so14387191uaa.2 for ; Tue, 06 Jun 2017 13:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sippysoft-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XoZcLaI3xH23omgzt88riuUeBV61eFXdDJiApPW0big=; b=fRQGcwSFP6VLAB3Y+C1F65ME7GNtbkIkle8n4QJOTqb3iidkE1kdkvGcdr2igV0JX2 1NdaXt9ZUQWQ0KeNwEeN8wJkT8+dWtN3NtzYBsfJO71MAYKVwf7ByNr426JR8nW8jMKH BOGTtWoV/cVPCOfYY3qQm2FRFj5rgb83wp9J+KCOr2Ts/mPareROQEE/ZevW+78CLFBH e9U/7IWLulGwS0tNm3avDUxLSPQZFyxGXYW0GEjEBLEzkbp03uBugXMhoTMgnJhwgxnP bSIaUOVAxbrTEL4GjIUpxOgI0K9YPLxIdKXWrLe7Yp8n+Bm+7ZCOZYzLnroeD7Uw9dPq qiKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XoZcLaI3xH23omgzt88riuUeBV61eFXdDJiApPW0big=; b=KZsAvUFYQGurOg1TT0oWKEZR2pquUGirQbKaSM+Zmr539PX+QYNX8y7LyuPKW/xNcf ynL99gnwtysP4xZX4LJTMW8+96bsir53N8FYqBdaslhezocoL7Jwz9ilR35h1FfZcvsb /ciChT2c7Jtmf82SsH0uYx/m8Zg3iUgyTuSw+8ln4nxtGuUIe9TEktHkpDpySxI3swFP sZ5yDZV1XrapRAIHSGjRvIhw5CLCXYc9t/iBtVZ2fJgVBTp25OgnEc+Kw1pQA9HXr+kE T2Xk9zqk2gu+WQoBRFTYd+sG453MxREtPA7bt+z5aGlrgHUFX+DI1L5BXFoJQ9GxWUA+ OV9Q== X-Gm-Message-State: AODbwcDaZzmnjOMGoyC+sVqh4XDoAmpzITTt4BFVc2v7N6aYEDpGNqv4 E4MkZp57gTYOZWx34o0W+6FHa6d6EXOx X-Received: by 10.159.60.82 with SMTP id w18mr13268364uah.19.1496780858603; Tue, 06 Jun 2017 13:27:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.18.193 with HTTP; Tue, 6 Jun 2017 13:27:37 -0700 (PDT) Received: by 10.176.18.193 with HTTP; Tue, 6 Jun 2017 13:27:37 -0700 (PDT) In-Reply-To: References: <20170606064039.4F3FE406063@ip-64-139-1-69.sjc.megapath.net> From: Maxim Sobolev Date: Tue, 6 Jun 2017 13:27:37 -0700 Message-ID: Subject: Re: Anybody using SO_BINTIME with IPv6? To: "Andrey V. Elsukov" Cc: Hal Murray , FreeBSD Net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2017 20:27:40 -0000 SO_BINTIME was ENOTSUPP with IPv6 from the day one. In general I think it's safe to advise to use SO_TIMESTAMP instead, which is also more flexible interface. I'd suggest SO_BINTIME is marked as obsoleting one instead. -Max On Tue, Jun 6, 2017 at 8:39 AM, Andrey V. Elsukov wrote: > On 06.06.2017 09:40, Hal Murray wrote: > > > > I'm cleaning up some code. SO_BINTIME works with IPv4. SO_TIMESTAMP > works > > with IPv4 and IPv6. > > > > But SO_BINTIME doesn't work with IPv6. setsockopt works, but recvmsg > doesn't > > return any cmsg data. > > > > If this is a known problem, I'll just use SO_TIMESTAMP and accept the > reduced > > resolution. If somebody has a working example, I'll work harder on > finding a > > bug/quirk and/or making a simple test case. > > Hi, > > it seems like a bug, that is easy to fix, but Maxim has already > implemented another option in this patch > https://reviews.freebsd.org/D9171 > > -- > WBR, Andrey V. Elsukov > > -- Maksym Sobolyev Sippy Software, Inc. Internet Telephony (VoIP) Experts Tel (Canada): +1-778-783-0474 <(778)%20783-0474> Tel (Toll-Free): +1-855-747-7779 <(855)%20747-7779> Fax: +1-866-857-6942 <(866)%20857-6942> Web: http://www.sippysoft.com MSN: sales@sippysoft.com Skype: SippySoft