mjhammel@Kepler.dell.com (Michael J. Hammel) (03/22/91)
Below is a discussion I had with someone here at Dell. My question is: is mbuf defined in ISC's TCP/IP 1.1.2 (or 1.2)? Doug McCallum? You out there? Is Tim right (no pun intended)? In article <tim.669547641@holly>, tim@dell.co.uk (Tim Wright) writes: |In <16842@uudell.dell.com> mjhammel@Kepler.dell.com (Michael J. Hammel) writes: | | >I'm trying to build some snmp agents and managers (the MIT distribution) | >and one file uses the following: | > struct mbuf mbufBuf; | >But I can't find this anywhere under /usr/include, including in | >/usr/include/sys/mbuf.h! Any ideas? I've seen references to mbufs all | >over the place, so it must be defined somewhere, I just can't find where. | | >I'm know this is a TCP/IP construct (I remember Michael Karels from UCB | >talk about it being in the BSD distribution at the tutorial I took at | >Interop last year). I looked in all the net-based include directories | >but couldn't find it. I even know what the structure looks like (its in | >the text from the tutorial). I just can't find the right header file. | | Dirty trick warning ! If my memory serves me correctly, you won't find much | to do with mbufs in V.3 for V.4. They were only a kludge (like clists) to | do give a memory pool for the socket/TCP code. I'm fairly certain that the | streams-based TCP-IPs we have use the streams dblocks to store data. | This is borne out by the fact that if you look at /usr/include/sys/mbuf.h, | you'll find all the defines reference structure tags such as b_datap, b_wptr | etc. A quick look at /usr/include/sys/stream.h reveals these to be part of | struct msgb, so I guess you just alias struct mbuf to struct msgb. | It's a pity that Lachman or whoever didn't edit the comments in the include | files to reflect these changes ! | Your mileage may vary :-) | | Tim | -- | Tim Wright, Dell Computer Corp., Bracknell | Domain: tim@dell.co.uk | Berkshire, UK, RG12 1RW. Tel: +44-344-860456 | Uucp: ...!ukc!delluk!tim | Smoke me a Kipper, I'll be back for breakfast - Red Dwarf Michael J. Hammel | mjhammel@{Kepler|socrates|feynman}.dell.com Dell Computer Corp. | {73377.3467|76424.3024}@compuserve.com #include <disclaim/std> | zzham@ttuvm1.bitnet #define CUTESAYING "Bwahahahahahahahahaha!!!"