Date: Fri, 28 May 1999 10:34:10 +0200 From: Ladavac Marino <mladavac@metropolitan.at> To: 'Emmanuel Duros' <Emmanuel.Duros@sophia.inria.fr>, freebsd-hackers@freebsd.org Subject: RE: FreeBSD 3.2 - new ifnet structure Message-ID: <55586E7391ACD211B9730000C1100276179628@r-lmh-wi-100.corpnet.at>
next in thread | raw e-mail | index | archive | help
> -----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55586E7391ACD211B9730000C1100276179628>
