Date: Mon, 22 Dec 2008 18:18:04 +0300 From: Sergey Matveychuk <sem@FreeBSD.org> To: Ian FREISLICH <ianf@clue.co.za> Cc: Gerald Pfeifer <gerald@pfeifer.com>, Vladimir Grebenschikov <vova@fbsd.ru>, Kip Macy <kip.macy@gmail.com>, Qing Li <qingli@freebsd.org>, freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: HEADSUP: arp-v2 has been committed Message-ID: <494FAFAC.90802@FreeBSD.org> In-Reply-To: <E1LEfm2-000BPk-Rs@clue.co.za> References: <E1LEfm2-000BPk-Rs@clue.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?494FAFAC.90802>