From owner-freebsd-current@FreeBSD.ORG Sun Dec 21 07:00:19 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 2EED71065670; Sun, 21 Dec 2008 07:00:19 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id DE3968FC14; Sun, 21 Dec 2008 07:00:18 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2953127rvf.43 for ; Sat, 20 Dec 2008 23:00:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=zY+NGdnaU8uOX8fRAG+c/4Wd105KkorKakNivCW42Ak=; b=gEej7u+flfJbFihl83A+DzxjACzjdR7NUnxq2YEEaPNoMTbfLVgpvwU+d0DYucNEX5 ETj+WOfmLy6g6nwgHBjNyIKa3T7sv4Td1AGkKu3hIVSgiHP/+g1LWZ7soGdVIlxhgMdI sUQXKD6CIPNSYRNWYzLvHIhdAY8k55kdLine8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=EAoppj+THIDZAew5JMx5+d0gVZoFkvNCxwegdW8ENMLb70XjK1AL7lmDwMhEiGuuvx u/RY7tlidL+B4USXXsXT9Zow5nRc/EsFUerOFxng6vvqvAvQY+pOzem6pPcIVu9q4yfA SI34yT4I/Y9RClfTIWbRsY8LWjf1a9LTHgkDA= Received: by 10.141.76.1 with SMTP id d1mr2523840rvl.110.1229842818076; Sat, 20 Dec 2008 23:00:18 -0800 (PST) Received: by 10.141.37.17 with HTTP; Sat, 20 Dec 2008 23:00:18 -0800 (PST) Message-ID: <3c1674c90812202300y6dc37e89l7936880179f140b5@mail.gmail.com> Date: Sat, 20 Dec 2008 23:00:18 -0800 From: "Kip Macy" Sender: mat.macy@gmail.com To: "Gerald Pfeifer" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812150634.mBF6YDVC060565@freefall.freebsd.org> <873agpk11i.fsf@kobe.laptop> <1229691231.1818.53.camel@localhost> X-Google-Sender-Auth: 09d4d9ae3c4ed317 Cc: Vladimir Grebenschikov , 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: Sun, 21 Dec 2008 07:00:19 -0000 The flag is not needed. It is only possible to retrieve arp entries by way of sysctl. The converse of this is you no longer need to grab all the entries in the routing table and look at each one to determine which are cloned routes (dynamic host routes) which contain ARP entries. -Kip On Sat, Dec 20, 2008 at 9:01 PM, Gerald Pfeifer wrote: > The code in question on the Wine side is > > #if defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP) > int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, RTF_LLINFO}; > > and there is nothing FreeBSD-specific in dlls/iphlpapi/ipstats.c as far > as I can see. > > If the arp-v2 update now made us incompatible both with earlier versions > of FreeBSD and Linux, that sounds like something that should be fixed > (instead of hacking applications like Wine). > > On the other hand, the commit message at > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/route.h > explicitly says > The change in design obsoletes the semantics of RTF_CLONING, > RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications > such as "arp" and "ndp" have been modified to reflect those changes. > so I guess it's not so easy. > > How many other ports are affected? > > What shall we do on the Wine front? Simply #ifdef-ing out the code in > question may not be the best of ideas, either. :-( > > Gerald > > On Fri, 19 Dec 2008, Vladimir Grebenschikov wrote: >> On Mon, 15 Dec 2008 06:34:13 GMT, Qing Li wrote: >> >>>> The arp-v2 changes have been committed into HEAD. >>>> Please report problems to me and Kip Macy. >> >> Wine is not build any more: >> >> ... >> cc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -I/usr/local/include -O2 -pipe -fno-strict-aliasing -o ipstats.o ipstats.c >> ipstats.c: In function 'getNumArpEntries': >> ipstats.c:1253: error: 'RTF_LLINFO' undeclared (first use in this function) >> ipstats.c:1253: error: (Each undeclared identifier is reported only once >> ipstats.c:1253: error: for each function it appears in.) >> ipstats.c: In function 'getArpTable': >> ipstats.c:1311: error: 'RTF_LLINFO' undeclared (first use in this function) >> ipstats.c:1311: warning: initialization makes integer from pointer without a cast >> gmake[2]: *** [ipstats.o] ?????? 1 >> gmake[2]: Leaving directory `/usr/ports/emulators/wine/work/wine-1.1.10/dlls/iphlpapi' >> gmake[1]: *** [iphlpapi] ?????? 2 >> gmake[1]: Leaving directory `/usr/ports/emulators/wine/work/wine-1.1.10/dlls' >> gmake: *** [dlls] ?????? 2 >> >> > > -- > Gerald (Jerry) Pfeifer gerald@pfeifer.com http://www.pfeifer.com/gerald/ > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Als die Nazis die Kommunisten holten, habe ich geschwiegen; ich war ja kein Kommunist. Als sie die Sozialdemokraten einsperrten, habe ich geschwiegen; ich war ja kein Sozialdemokrat. Als sie die Gewerkschafter holten, habe ich nicht protestiert; ich war ja kein Gewerkschafter. Als sie die Juden holten, habe ich geschwiegen; ich war ja kein Jude. Als sie mich holten, gab es keinen mehr, der protestieren konnte.