Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!ihnp4.ucsd.edu!library.ucla.edu!europa.eng.gtefsd.com!howland.reston.ans.net!wupost!udel!newsserv.cs.sunysb.edu!ysics.physics.sunysb.edu!chitra
From: chitra@cs.sunysb.edu (Chitra Venkatramani)
Newsgroups: comp.os.386bsd.development
Subject: mbuf doubts
Date: 14 Mar 1994 17:22:49 GMT
Organization: Institute For Theoretical Physics
Lines: 32
Message-ID: <2m26h9$13b@ysics.physics.sunysb.edu>
NNTP-Posting-Host: sbgrad9.cs.sunysb.edu
X-Newsreader: TIN [version 1.2 PL2]
Hi!
I am working on the low level network code in 386bsd and have trouble
sending out mbufs larger than MINCLSIZE...basically, i have trouble
while trying to send cluster mbufs. Here's part of my code :
sending side:
struct s {
char data[1400];
}*my_struct;
MGET(m, M_WAIT, MT_DATA);
MCLGET(m, M_WAIT);
my_struct = mtod(m, (struct s *));
...fill up my_struct...
m->m_len = sizeof(*my_struct);
...
...
...
...ifp->if_output.....
At the receiving side, I receive the packet but the length m->m_len
is only 84 bytes!
Maybe I'm missing some more initialization stuff...Maybe I'm not
filling up the m_buf header properly...
Any help about this would be appreciated....
-Chitra Venkatramani
chitra@cs.sunysb.edu