RE: OOPS after adding new field to skbuff.c ?!?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Adam Flizikowski [mailto:adam_fli@poczta.onet.pl]
> Sent: Thursday, August 14, 2003 4:00 PM
> To: Lista Linux-Net
> Subject: OOPS after adding new field to skbuff.c ?!?
> 
> 
> Hello,
> 
> Let's say i have added a new field to skbuff.h : char pkt_nr[48].
> 
[snip]
> 
> But this causes OOPS when i boot my kernel (of course after 
> compilation). I
> think this is because sch_generic is called even before 
> pkt_nr was filled.
> 

We've added a field called real_dev for proper behavior of
bonding with point to point protocols (e.g. 802.3ad).
There are several places in skbuff.c that also needed changing
that clone skb's, or recreate them, etc.
You can diff skbuff.[ch] between 2.4.21 and 2.4.22-rc1 to
see what we did. It works.

Also see 8021q VLAN module for proper way to fill private data
into skb->cb. It is using some sort of TLV to make sure the data
is valid and can be accessed.

-- 
| Shmulik Hen   Advanced Network Services  |
| Israel Design Center, Jerusalem          |
| LAN Access Division, Platform Networking |
| Intel Communications Group, Intel corp.  |

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux