From owner-freebsd-current@FreeBSD.ORG Mon Dec 22 15:59:28 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FE251065676; Mon, 22 Dec 2008 15:59:28 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from mail.ciam.ru (mail.ciam.ru [212.34.63.72]) by mx1.freebsd.org (Postfix) with ESMTP id BCF048FC14; Mon, 22 Dec 2008 15:59:26 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from dhcp250-188.yandex.ru ([87.250.250.188]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1LEmXk-0006ET-KH; Mon, 22 Dec 2008 18:18:04 +0300 Message-ID: <494FAFAC.90802@FreeBSD.org> Date: Mon, 22 Dec 2008 18:18:04 +0300 From: Sergey Matveychuk User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Ian FREISLICH References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Gerald Pfeifer , Vladimir Grebenschikov , Kip Macy , Qing Li , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: HEADSUP: arp-v2 has been committed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2008 15:59:28 -0000 Ian FREISLICH wrote: > --- lib/sockopt.c.orig 2007-08-21 18:32:56.000000000 +0200 > +++ lib/sockopt.c 2008-08-13 09:07:20.000000000 +0200 > @@ -231,6 +231,7 @@ > else > mreqn.imr_address = if_addr; > > + mreqn.imr_address = if_addr; > ret = setsockopt(sock, IPPROTO_IP, optname, > (void *)&mreqn, sizeof(mreqn)); > if ((ret < 0) && (optname == IP_ADD_MEMBERSHIP) && (errno == EADDRINUSE)) > I don't catch your idea here. Can you explain it please? A result code looks ugly: if (ifindex) mreqn.imr_ifindex = ifindex; else mreqn.imr_address = if_addr; mreqn.imr_address = if_addr; ret = setsockopt(sock, IPPROTO_IP, optname, ... -- Dixi. Sem.