* dev->hard_header ?
@ 2002-11-20 2:46 Seong Moon
2002-11-20 5:06 ` Ben Greear
0 siblings, 1 reply; 2+ messages in thread
From: Seong Moon @ 2002-11-20 2:46 UTC (permalink / raw)
To: netdev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dev->hard_header ?
2002-11-20 2:46 dev->hard_header ? Seong Moon
@ 2002-11-20 5:06 ` Ben Greear
0 siblings, 0 replies; 2+ messages in thread
From: Ben Greear @ 2002-11-20 5:06 UTC (permalink / raw)
To: Seong Moon; +Cc: netdev
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 <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-20 5:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 2:46 dev->hard_header ? Seong Moon
2002-11-20 5:06 ` Ben Greear
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).