[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-netdev
Subject:    Re: Maximum no of bytes Ethernet can transfer at a time ??
From:       Neil Horman <nhorman () tuxdriver ! com>
Date:       2011-04-29 19:06:26
Message-ID: 20110429190626.GB22387 () hmsreliant ! think-freely ! org
[Download RAW message or body]

On Fri, Apr 29, 2011 at 08:39:31AM +0000, Ajit wrote:
> Neil Horman <nhorman <at> tuxdriver.com> writes:
> 
> 
> > > 
> > Can you just post a link to the code?
> > Neil
> > 
> > > Thank you. 
> > > 
> > > 
> 
> here are the links to the code..
> 
> sender code : http://pastebin.com/se17Xn96
> 
> The command line arguments are like ./pgm_name eth0 /root/abc
> 
> where abc is the file name.
> 
> receiver code : http://pastebin.com/AKiUWzwR
> 
> just run it.
> 
> In the receiver code I have assigned offset to buffer[15], it was just for
> debugging purpose. Actually offset must have 16 bits of buffer[15] and
> buffer[16], but for files of around 100kb-200kb it will easily work..no need to
> modify.
> 
> Thank you.
> 
Well, just looking at it, I presume you're getting an error on send when you
send over your raw socket.  If so, whats the error you're getting?  If you're
not getting an error, then you're dropping it somewhere in the stack.  After you
loose the data in question, what do youre /proc/net/dev and ethtool stats look
like?
Neil

> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic