From owner-freebsd-hackers Wed Feb 24 20:36:44 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ikhala.tcimet.net (ikhala.tcimet.net [198.109.166.215]) by hub.freebsd.org (Postfix) with ESMTP id 4F2DF14CFB for ; Wed, 24 Feb 1999 20:36:41 -0800 (PST) (envelope-from dervish@ikhala.tcimet.net) Received: (from dervish@localhost) by ikhala.tcimet.net (8.9.3/8.9.2) id AAA07711; Thu, 25 Feb 1999 00:00:17 -0500 (EST) (envelope-from dervish) Date: Thu, 25 Feb 1999 00:00:17 -0500 From: Natty Rebel To: Josh Cc: hackers@freebsd.org Subject: Re: structures Message-ID: <19990225000017.A5776@ikhala.tcimet.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Josh on Thu, Feb 25, 1999 at 01:21:24PM +1100 X-Operating-System: FreeBSD 4.0-CURRENT i386 X-PGP-Fingerprint: 2C CE A5 D7 FA 4D D5 FD 9A CC 2B 23 04 46 48 F8 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoting Josh (josh2@marvin.albury.net.au): > Hi. Hey there ... #;^) >=20 > I am looking for a structure definition (ifreq) which I think > is ....., well I have no idea where it is really. I would love > a way to find "system" structure definitions like time_t for example. > The structure I am looking for is used in trafshow but I dont think=20 > its defined within that program.=20 > I have used gtags for the functions, is there=1Bsomething similar > for structures ? > As you can tell I floundering a bit and would love to know how > the people on this list manage it. > Any pointers appreciated. grep is your friend. try the following commands: grep -n time_t /usr/include/*|more grep -n ifreq /usr/include/sys/*|more This is what I usually do to find definitions. Also there is a site http://lxr.linux.no/freebsd/source you'll find a cross referencing tool that they used on freebsd sources ... >=20 > I am looking at hacking trafshow2 to get byte counting on the > ethernet by IP (MAC would be fine) address, if anyone has > suggestions regarding this please comment. >=20 > Josh >=20 > ---------------------------------- > E-Mail: Josh > Date: 25-Feb-99 > ---------------------------------- >=20 #;^) --=20 natty rebel harder than the rest ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message