lkml.org 
[lkml]   [1999]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Headerless packets hitting ethernet?
Date
Hello!

> Who is to say it is unused?

It is not used not depending of anyone's desire, but just because
it is not well-defined. See below.

Actually, I am even a bit puzzled for what purpose you were intented
to use this pointer 8)8). I cannot even formulate a valid goal.

> Because someone might try to use it, assuming that if it is not zero,


This pointer cannot be zero, it is relocateable and always
points to a valid memory area.


> > This is pointer for packet sniffer marking start of raw
> > data. Outside of this context it is just not well defined.
>
> Right, and *outgoing* packets get caught by the packet sniffers too...

Exactly. And it is the most weird bug following us from ancient times.
Look at code and in comments in it.

Summarizing: mac.raw is trick to pass mac header from driver
to packet socket. That's all.

Alexey Kuznetsov

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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