lkml.org 
[lkml]   [2002]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [GENERIC HDLC LAYER] Messages of a hdlc device
From
Date
Arnaldo Carvalho de Melo <acme@conectiva.com.br> writes:

> This is becoming a FAQ... see net/core/dev.c, line 907 on 2.5:
>
> /* skb->nh should be correctly
> set by sender, so that the second statement is
> just protection against buggy protocols.
> */
> skb2->mac.raw = skb2->data;
>
> if (skb2->nh.raw < skb2->data || skb2->nh.raw > skb2->tail) {
> if (net_ratelimit())
> printk(KERN_DEBUG "protocol %04x is buggy, dev %s\n",
> skb2->protocol, dev->name);
> skb2->nh.raw = skb2->data;
> }

Sure I know thats it, but I remember checking the code which resulted
in nothing. Don't remember details, so I'll look at it again.
--
Krzysztof Halasa
Network Administrator
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.030 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site