dev->hard_header ?

2 messages, 2 authors, 2002-11-20 · open the first message on its own page

dev->hard_header ?

From: Seong Moon <hidden>
Date: 2002-11-20 02:46:20

In Layer 3 Protocols(eg. IP, IPv6, ...),
they calls dev_queue_xmit() to send their data.

Before calling dev_queue_xmit(),
does the layer 3 protocols always call dev->hard_header ?

Actually, I'm not sure when dev->hard_header is called.

I think dev->hard_start_xmit can include the part of dev->hard_header.
Why did the developer seperate the header building and sending frame
fucntion ?

thanks in advance.

Re: dev->hard_header ?

From: Ben Greear <hidden>
Date: 2002-11-20 05:06:01

Seong Moon wrote:
In Layer 3 Protocols(eg. IP, IPv6, ...),
they calls dev_queue_xmit() to send their data.

Before calling dev_queue_xmit(),
does the layer 3 protocols always call dev->hard_header ?

Actually, I'm not sure when dev->hard_header is called.

I think dev->hard_start_xmit can include the part of dev->hard_header.
Why did the developer seperate the header building and sending frame
fucntion ?
It's not always called, this way user-space (or other parts of the kernel)
can build the headers if desired.  This at least works for ethernet and
VLAN interfaces.

Ben
thanks in advance.

-- 
Ben Greear [off-list ref]       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help