Open Source Telephony
 help / color / mirror / Atom feed
From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 2/2] ppp: do not allow mtu > 1500 to be set
Date: Thu, 22 Apr 2010 14:22:56 -0700	[thread overview]
Message-ID: <1271971376-9938-1-git-send-email-kristen@linux.intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

---
 gatchat/ppp_net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gatchat/ppp_net.c b/gatchat/ppp_net.c
index fc1f9fb..53d62fa 100644
--- a/gatchat/ppp_net.c
+++ b/gatchat/ppp_net.c
@@ -53,7 +53,7 @@ void ppp_net_set_mtu(struct ppp_net *net, guint16 mtu)
 	struct ifreq ifr;
 	int sock;
 
-	if (net == NULL)
+	if (net == NULL || mtu >= MAX_PACKET)
 		return;
 
 	net->mtu = mtu;
-- 
1.6.6.1


                 reply	other threads:[~2010-04-22 21:22 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=1271971376-9938-1-git-send-email-kristen@linux.intel.com \
    --to=kristen@linux.intel.com \
    --cc=ofono@ofono.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox