HEADSUP: arp-v2 has been committed
Sergey Matveychuk
sem at FreeBSD.org
Mon Dec 22 07:18:07 PST 2008
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.
More information about the freebsd-net
mailing list