All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Jones <rick.jones2@hp.com>
To: Ajit <ajitsa_bes@yahoo.com>
Cc: netdev@vger.kernel.org
Subject: Re: Maximum no of bytes Ethernet can transfer at a time ??
Date: Thu, 28 Apr 2011 14:24:55 -0700	[thread overview]
Message-ID: <1304025895.9358.771.camel@tardy> (raw)
In-Reply-To: <loom.20110428T083015-693@post.gmane.org>

> I tried out something as you said.
> 
> I introduces this lines in my code,
> 
> getsockopt(s,SOL_SOCKET,SO_RCVBUF,&optval,&optlen);
> printf("The value of optlen is %d\n",optlen);
> 
> It always displays 4.

Because the length of the optval is always 4 when retrieving the
SO_RCVBUF setting.  You want to print the value of optval.

rick jones


  parent reply	other threads:[~2011-04-28 21:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27 12:11 Maximum no of bytes Ethernet can transfer at a time ?? Ajit
2011-04-27 12:21 ` Eric Dumazet
2011-04-27 12:27   ` Ajit
2011-04-28  6:36     ` Ajit
2011-04-28  6:40       ` Eric Dumazet
2011-04-28 21:24       ` Rick Jones [this message]
2011-04-27 13:01 ` Neil Horman
2011-04-28  5:49   ` Ajit
2011-04-28 11:06     ` Neil Horman
2011-04-29  8:39       ` Ajit
2011-04-29 19:06         ` Neil Horman
2011-04-29  8:53       ` Ajit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1304025895.9358.771.camel@tardy \
    --to=rick.jones2@hp.com \
    --cc=ajitsa_bes@yahoo.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.