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
|