Jorge Boncompte [DTI2] | 22 May 2013 13:32

[PATCH v3 1/4] ppp: adds new decompressor error code to signal that packet must be dropped

From: "Jorge Boncompte [DTI2]" <jorge <at> dti2.net>

Currently decompressors can't signal the generic PPP layer to silently
drop a packet without notifying the PPP daemon or the other party.

Signed-off-by: Jorge Boncompte [DTI2] <jorge <at> dti2.net>
---
 drivers/net/ppp/ppp_generic.c |   12 ++++++++++++
 include/linux/ppp-comp.h      |    6 ++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 72ff14b..7d26825 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
 <at>  <at>  -1729,6 +1729,10  <at>  <at>  ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
 	    (ppp->rstate & (SC_DC_FERROR | SC_DC_ERROR)) == 0)
 		skb = ppp_decompress_frame(ppp, skb);

+	/* Packet dropped */
+	if (skb == NULL)
+		goto err;
+
 	if (ppp->flags & SC_MUST_COMP && ppp->rstate & SC_DC_FERROR)
 		goto err;

 <at>  <at>  -1888,6 +1892,13  <at>  <at>  ppp_decompress_frame(struct ppp *ppp, struct sk_buff *skb)
 		len = ppp->rcomp->decompress(ppp->rc_state, skb->data - 2,
 				skb->len + 2, ns->data, obuff_size);
 		if (len < 0) {
(Continue reading)

i_ebevova | 22 May 2013 04:22
Favicon

благо посетить на наш сайт. Вам Понравится то что Вы на нем увидите.

доступнее нежели У нас это бесплатно 
http://goo.gl/L57nx?/egRfioWs - Пора вставать, уж ровно пять. Ну, а
младший, наконец,
Jorge Boncompte [DTI2] | 21 May 2013 20:18

[RFC PATCH v2 1/4] ppp: adds new error for decompressors to signal that packet must be dropped

From: "Jorge Boncompte [DTI2]" <jorge <at> dti2.net>

Currently decompressors can't signal the generic PPP layer to silently
drop a packet without notifying the PPP daemon or the other party.

Signed-off-by: Jorge Boncompte [DTI2] <jorge <at> dti2.net>
---
 drivers/net/ppp/ppp_generic.c |   12 ++++++++++++
 include/linux/ppp-comp.h      |    6 ++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 72ff14b..7d26825 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
 <at>  <at>  -1729,6 +1729,10  <at>  <at>  ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
 	    (ppp->rstate & (SC_DC_FERROR | SC_DC_ERROR)) == 0)
 		skb = ppp_decompress_frame(ppp, skb);

+	/* Packet dropped */
+	if (skb == NULL)
+		goto err;
+
 	if (ppp->flags & SC_MUST_COMP && ppp->rstate & SC_DC_FERROR)
 		goto err;

 <at>  <at>  -1888,6 +1892,13  <at>  <at>  ppp_decompress_frame(struct ppp *ppp, struct sk_buff *skb)
 		len = ppp->rcomp->decompress(ppp->rc_state, skb->data - 2,
 				skb->len + 2, ns->data, obuff_size);
 		if (len < 0) {
(Continue reading)

лександр | 20 May 2013 21:59
Picon

У Вашего малыша действительно нету

Побалуйте оригинальным http://goo.gl/9yQPC?/sfOyu

N‹§Іжмrё›yъиљШbІX¬¶З§vШ^–)Ює{.nЗ+‰·ҐЉ{±¦љbћШ^n‡rЎц¦zЛЃлh™Ёи­Ъ&ўш®G«ќйh®(­йљЋЉЭўj"ќъ¶m§япЃкдz№Ю–ЉаюfЈў·hљ€§~€m
Jorge Boncompte [DTI2] | 20 May 2013 18:33

[RFC PATCH 1/2] ppp: adds new error for decompressors to signal that packet must be dropped

From: "Jorge Boncompte [DTI2]" <jorge <at> dti2.net>

Currently decompressors can't signal the generic PPP layer to silently
drop a packet without notifying the PPP daemon or the other party.

Signed-off-by: Jorge Boncompte [DTI2] <jorge <at> dti2.net>
---
 drivers/net/ppp/ppp_generic.c |   12 ++++++++++++
 include/linux/ppp-comp.h      |    6 ++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 72ff14b..7d26825 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
 <at>  <at>  -1729,6 +1729,10  <at>  <at>  ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
 	    (ppp->rstate & (SC_DC_FERROR | SC_DC_ERROR)) == 0)
 		skb = ppp_decompress_frame(ppp, skb);

+	/* Packet dropped */
+	if (skb == NULL)
+		goto err;
+
 	if (ppp->flags & SC_MUST_COMP && ppp->rstate & SC_DC_FERROR)
 		goto err;

 <at>  <at>  -1888,6 +1892,13  <at>  <at>  ppp_decompress_frame(struct ppp *ppp, struct sk_buff *skb)
 		len = ppp->rcomp->decompress(ppp->rc_state, skb->data - 2,
 				skb->len + 2, ns->data, obuff_size);
 		if (len < 0) {
(Continue reading)

флена | 20 May 2013 04:12
Favicon

Это доступно

  Вы получите возможность разговаривать на
британском непосредственно после дебютного урока.
Поднять личную стоимость на поприще работы. Быстрое
изучение. Потребляются засекреченные методы.
Изготовить личную биографию разновиднее,
подзаняться любопытнейшим занятием. Web: http://goo.gl/DxIG1 . 

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Mr. Wayne Scott | 6 May 2013 21:18
Picon
Favicon

Investment Placement

Greetings,

I am a Civil Lawyer in the United Kingdom. I have a Client that has Interest in investing in Your country. Can
You be of assistance?

I shall give you details when you reply

Wayne
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Mr. Wayne Scott | 3 May 2013 20:14
Picon
Favicon

Investment Placement

Greetings,

I am a Civil Lawyer in the United Kingdom. I have a Client that has Interest in investing in Your country. Can
You be of assistance?

I shall give you details when you reply

Wayne
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

trash64 | 10 May 2013 04:07
Picon
Favicon

надежды устанавливаются очевидностью

Адрес интернет-магазина: http://tinyurl.com/d9934g9 она поможет
Вам <<разложить полностью по полочкам>> и
сфокусировать органичные источники на наиболее - на
Вашей цели! и не существенно, какую цель Вы пред собою
назначаете - переменить профессию, развернуть дело
али похудеть на |O килограмм. Мы ведим как
поспособствовать Вам достичь успеха! Мы презентуем
вашему вниманию новейшую программу людям, какие
бегут к своим целям!
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bernstein, Harry | 30 Apr 2013 05:14
Favicon

RE: Loan Offer! Contact: transcopeloan12 <at> qq.com


________________________________________
From: Bernstein, Harry
Sent: Monday, April 29, 2013 9:57 PM
To: info <at> notice.com
Subject: Loan Offer! Contact: transcopeloan12 <at> qq.com

Do You Need an urgent loan of any Amount? Then contact us now, we give out all kinds of loans with a very low
interest rate of 3%. Contact us with your name, your country: loan amount needed: loan duration: monthly
income: your valid cell phone number : sex : via E-mail Only  transcopeloan12 <at> qq.com--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Andy Shevchenko | 27 Mar 2013 16:54
Picon

[PATCH 1/2] net: core: let's use native isxdigit instead of custom

In kernel we have fast and pretty implementation of the isxdigit() function.
Let's use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko <at> linux.intel.com>
---
 net/core/utils.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/core/utils.c b/net/core/utils.c
index e3487e46..3c7f5b5 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
 <at>  <at>  -17,6 +17,7  <at>  <at> 
 #include <linux/module.h>
 #include <linux/jiffies.h>
 #include <linux/kernel.h>
+#include <linux/ctype.h>
 #include <linux/inet.h>
 #include <linux/mm.h>
 #include <linux/net.h>
 <at>  <at>  -348,9 +349,7  <at>  <at>  int mac_pton(const char *s, u8 *mac)

 	/* Don't dirty result unless string is valid MAC. */
 	for (i = 0; i < ETH_ALEN; i++) {
-		if (!strchr("0123456789abcdefABCDEF", s[i * 3]))
-			return 0;
-		if (!strchr("0123456789abcdefABCDEF", s[i * 3 + 1]))
+		if (!isxdigit(s[i * 3]) || !isxdigit(s[i * 3 + 1]))
 			return 0;
 		if (i != ETH_ALEN - 1 && s[i * 3 + 2] != ':')
(Continue reading)


Gmane