Re: IPv6 - why skb->cb is not filled???

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

 



Hi Adam,

skb->cb is used by IP protocols also. IPv6 stores struct inet6_skb_parm
(TCP stores struct tcp_skb_cb and inet6_skb_parm is a part of that)
in skb->cb.
Look at ipv6_rcv() where the device index is stored in skb->cb.

Maybe there is conflict between your driver and IPv6.

Regards
Suvidh



                                                                                                                                          
                      "Adam Flizikowski"                                                                                                  
                      <adam_fli@poczta.one        To:       <linux-net@vger.kernel.org>                                                   
                      t.pl>                       cc:                                                                                     
                      Sent by:                    Subject:  IPv6 - why skb->cb is not filled???                                           
                      linux-net-owner@vger                                                                                                
                      .kernel.org                                                                                                         
                                                                                                                                          
                                                                                                                                          
                      14/08/2003 02:52 PM                                                                                                 
                                                                                                                                          
                                                                                                                                          




Hello,

I have added packet numbering at driver level (8139too.c):
- after data is taken from eth and skb reserved i put a number
sprintf(skb->cb,"%lu",pkt_nr) which is ++'ed every pkt

later on, in ip6_input.c i try to read skb->cb and ... it is empty (or has
not proper value).

Whereas when i try to read skb->cb from ip_input.c (ipv4) it is properly
read.

Could you please advice me what can be wrong?

Does ipv6 uses header file other than skbuff.h ??? .. and thus different
skb
struct???


best regards

adam

-
: 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




-
: 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