how to obtain mac address using sk_buff???
hey guys....
i desparately need to know as to how can i get hold of the packet frame header using sk_buff....well i tried accessing it this way.....
struct sk_buff *skb.....and skb->mac.raw but it giving junk values....i also tried ehdr=eth_header(skb) and then using
ehdr->h_source and ehdr->h_dest.... even these are giving junk values. The worst part even dev->dev_addr is displaying
the wrong mac value..... cud some one please releave me from
this headache.....
Thanks for the remedy in advance....
|