Re: HEADSUP: arp-v2 has been committed

From: Sergey Matveychuk <sem_at_FreeBSD.org>
Date: Mon, 22 Dec 2008 18:18:04 +0300
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
> _at__at_ -231,6 +231,7 _at__at_
>        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.
Received on Mon Dec 22 2008 - 14:59:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC