netdev
[Top] [All Lists]

sk_buffs in netif_rx()

To: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
Subject: sk_buffs in netif_rx()
From: "G113 (G.P.ROBERTS)" <G.P.ROBERTS@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Feb 2002 14:53:50 -0000
Sender: owner-netdev@xxxxxxxxxxx
Hi, 

I am using linux rh 7.0 with kernel 2.2.16-22.  

I am trying to printk the destination and source address of a packet 
in netif_rx() just before it is added to the backlog queue. 

I have done this successfully in Eth.c to read out skb->data[26], 
skb->data[27], up to skb->data[33] which gives the correct information 
for the source address. 

However, skb->data[26] does not point to the right place when I read 
it from a packet in the netif_rx() function. 

How do I work out where to look in skb->data to find the information 
(I would also like to read the timestamp and tcp sequence number) - 
are the ip addresses and timestamps now in the "actual" data section 
of the packet, pointed to by  skb->head?  I assume it has changed position
because of the ethernet header having been stripped by the time it gets to
netif_rx().

I would also like to be able to read it in netbh() when a packet is 
taken from the queue - will the information be at the same point in 
the packet here? 

Thanks, 
Graham 


<Prev in Thread] Current Thread [Next in Thread>