| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | Why skbuff.h different for 2.4 and 2.6 kernels? |
| From: | linux lover <linux_lover2004@xxxxxxxxx> |
| Date: | Mon, 11 Apr 2005 09:37:52 -0700 (PDT) |
| Comment: | DomainKeys? See http://antispam.yahoo.com/domainkeys |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Feyprh1uwGUzXp6f3HFTMMnu+UjHlOmpxMhhAod0s5i0T/1eQjNV5YK+NOcJ4E2xWjHwYjR2Fpf1hOmmRxjM0zN+ElxEz7H6pB7hJeqnjfe5D5Cdm0SdH1m8cQbWP4Yx3WzY+hXsme+pOqjVtn5aqBkFOOS5zYa4e+deFHtNO78= ; |
| Sender: | netdev-bounce@xxxxxxxxxxx |
hello,
1) In 2.4 kernel series skbuff.h has following unions
for each TCP/IP layer.
/*Transport Layer*/
union
{
struct tcphdr *th;
struct udphdr *uh;
struct icmphdr *icmph;
struct igmphdr *igmph;
struct iphdr *ipiph;
struct spxhdr *spxh;
unsigned char *raw;
} h;
/* Network layer header */
union
{
struct iphdr *iph;
struct ipv6hdr *ipv6h;
struct arphdr *arph;
struct ipxhdr *ipxh;
unsigned char *raw;
} nh;
/* Link layer header */
union
{
struct ethhdr *ethernet;
unsigned char *raw;
} mac;
AND In 2.6 kernel series skbuff.h has following unions
for each TCP/IP layer.
union {
struct tcphdr *th;
struct udphdr *uh;
struct icmphdr *icmph;
struct igmphdr *igmph;
struct iphdr *ipiph;
struct ipv6hdr *ipv6h;
unsigned char *raw;
} h;
union {
struct iphdr *iph;
struct ipv6hdr *ipv6h;
struct arphdr *arph;
unsigned char *raw;
} nh;
union {
unsigned char *raw;
} mac;
why mac union in 2.6 not have ethernet header? Also
spxhdr and ipxhdr structures are removed from nh and h
unions.
2) Why header structures for ipcomp,eh,esp(IPSEC) not
included in skbuff.h?
Then how can skbuff adds/removes those headers in
skbuff?
regards,
linux_lover
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [2/1] connector/CBUS: new messaging subsystem. Revision number next., Evgeniy Polyakov |
|---|---|
| Next by Date: | Re: Why skbuff.h different for 2.4 and 2.6 kernels?, Arnaldo Carvalho de Melo |
| Previous by Thread: | [1/1] connector/CBUS: new messaging subsystem. Revision number next., Evgeniy Polyakov |
| Next by Thread: | Re: Why skbuff.h different for 2.4 and 2.6 kernels?, Arnaldo Carvalho de Melo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |