From owner-freebsd-hackers Fri May 28 1:41:15 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id 97FB814E13 for ; Fri, 28 May 1999 01:36:25 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Fri, 28 May 1999 10:39:13 +0200 Message-ID: <55586E7391ACD211B9730000C1100276179628@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Emmanuel Duros' , freebsd-hackers@freebsd.org Subject: RE: FreeBSD 3.2 - new ifnet structure Date: Fri, 28 May 1999 10:34:10 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Emmanuel Duros [SMTP:Emmanuel.Duros@sophia.inria.fr] > Sent: Friday, May 28, 1999 10:19 AM > To: freebsd-hackers@freebsd.org > Subject: FreeBSD 3.2 - new ifnet structure > > > The last FreeBSD release provides a new ifnet structure different from > the one in 2.x-R. > > In 2.x-R we can have this code: > > { > struct ifnet *ifp = ifnet; > > /* go through the ifnet list */ > for ( ifp = ifnet; ifp; ifp = ifp->if_next) > ... > } > > What is it in 3.x-R assuming that the global variable ifnet is a > 'struc > ifnethead' and there is not if_next member ? > > BTW, I have not found the definition of the ifnethead structure, in > what > file is it ? [ML] I don't have the source in front of me, but I think it uses queue.h macros now so that the definition probably looks like typedef LIST_HEAD( something, ifnet ) ifnethead; where LIST could also be TAILQ, CIRCQ, or something else (the AIX version of sys/queue.h contains only these three). /Marino > Thanks > > Emmanuel > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message