All of lore.kernel.org
 help / color / mirror / Atom feed
From: xiaozhao <dragonlinux@gmail.com>
To: linux-ppp@vger.kernel.org
Subject: pppd's mtu setup
Date: Fri, 08 Jan 2010 03:58:16 +0000	[thread overview]
Message-ID: <27071075.post@talk.nabble.com> (raw)


Sorry I copy these from gitweb trunk:
when lcp is up, it will call netif_set_mtu to set stack's ppp interface mtu
with MIN(MIN(mtu, mru), ao->mru), but why it is followed by ppp_send_config
with mtu only?
the 2nd setting could be different with first setting.
I can see sys-linux didn't do anything with 2nd mtu setting so it is
correct, but why there is 2nd setting and with different mtu?

    mtu = ho->neg_mru? ho->mru: PPP_MRU;

1908     mru = go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU;

1909 #ifdef HAVE_MULTILINK

1910     if (!(multilink && go->neg_mrru && ho->neg_mrru))

1911 #endif /* HAVE_MULTILINK */

1912         netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));

1913     ppp_send_config(f->unit, mtu,

1914                     (ho->neg_asyncmap? ho->asyncmap: 0xffffffff),

1915                     ho->neg_pcompression, ho->neg_accompression);


thanks,
xiaozhao
-- 
View this message in context: http://old.nabble.com/pppd%27s-mtu-setup-tp27071075p27071075.html
Sent from the linux-ppp mailing list archive at Nabble.com.


                 reply	other threads:[~2010-01-08  3:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=27071075.post@talk.nabble.com \
    --to=dragonlinux@gmail.com \
    --cc=linux-ppp@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.