Why skbuff.h different for 2.4 and 2.6 kernels?
Subsystems (2)
Hello,
Thanks for reply. Can you please tell me about
my second question?
2)But Why header structures for ipcomp, eh,
esp(IPSEC) not included in skbuff.h?
regards,linux_lover.
--- Arnaldo Carvalho de Melo <[email protected]>
Quoted 22 lines · wrote:
Quoted 2 lines · linux lover
hello,
1) In 2.4 kernel seriesskbuff.hhas followingunions
Quoted 8 lines
for each TCP/IP layer.
union { unsigned char *raw; } mac;why mac union in 2.6 not have ethernet header?
Also
Quoted 1 line
spxhdr and ipxhdr structures are removed from nh
and h
Quoted 1 line
unions.
Work in progress, the ultimate goal is to get rid of all of these unions and
have just:
Quoted 9 lines
void *transport_header; void *network_header; void *link_header;So just set mac.raw directly and cast it to the
desired type.- Arnaldo
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
Quoted 5 lines · linux lover
Hello,
Thanks for reply. Can you please tell me about
my second question?
2)But Why header structures for ipcomp, eh,
esp(IPSEC) not included inskbuff.h?
I thought I have answered this, the reason to have the layer pointers in skb be void is that skb is core/generic infrastructure, it should not have any kind of protocol specific structures/information in it.
- Arnaldo