From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 1 03:37:22 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CE3D16A41F for ; Sun, 1 Jan 2006 03:37:22 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from skippyii.compar.com (old.compar.com [216.208.38.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3687343D53 for ; Sun, 1 Jan 2006 03:37:20 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [70.28.254.189]) by skippyii.compar.com (8.13.1/8.13.1) with ESMTP id k013cGib035086; Sat, 31 Dec 2005 22:38:17 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <007e01c60e84$bdfe0110$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "ari edelkind" , "prime" References: <1fa17f810512310901lbabc8ddj630fcf2a79691ba1@mail.gmail.com><20051231191024.GF15481@episec.com><1fa17f810512311746u1b07731dx1326c936910424c8@mail.gmail.com> <20060101021156.GF33131@episec.com> Date: Sat, 31 Dec 2005 22:37:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Cc: freebsd-hackers@freebsd.org Subject: Re: Problem about libnet on FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2006 03:37:22 -0000 > guomingyan@gmail.com wrote: > > > > Did you read my post? > > > Or are you not on the list? I sent my response directly to the list, > > > not including you specifically. > [...] > > I am on the list,and I don't receive your post. > > I think you can send post specifically to me and cc > > to the list :-). > > Thanks. > > In the future, please respond to personal mails personally. Neither my > direct e-mail address nor this mail were intended for public viewing. > > The post to which i was referring is: > http://lists.freebsd.org/pipermail/freebsd-hackers/2005-December/014986.html The problem is that libnet defines ether_addr without regard for the fact that it's defined in our system headers. This is a bug in libnet, not FreeBSD. In particular, libnet/libnet-headers.h has this code, which is very Linux-centric and works around the duplicate definition problem on Linux, but doesn't help anyone on other platforms. 391 #if (!__GLIBC__) 392 struct ether_addr 393 { 394 u_char ether_addr_octet[6]; 395 }; 396 #endif The problem has been properly fixed in the current development version of libnet (net/libnet-devel), by renaming the ether_addr structure to libnet_ether_addr. The net/libnet port should be marked BROKEN because of this issue (I've opened a PR) and folks should use libnet-devel instead, until the net/libnet port is updated to a newer version. The net/libnet maintainer has been notified of this problem. Regards, -- Matt Emmerton