Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


Closed Thread
  Search this Thread
Old 04-12-2006, 05:12 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 23

Rep: Reputation: 15
Angry 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....
Old 04-14-2006, 06:02 AM   #2
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
check answer for this in your same question at
Old 04-14-2006, 08:22 AM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Please continue here:

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to obtain the MAC adress for your NIC Metablade Linux - Newbie 8 10-11-2005 02:44 PM
how to obtain someone's ip address through netstat dr_zayus69 Linux - Networking 5 08-14-2005 12:06 AM
Can't obtain IP address for my wireless card trialanderror Linux - Newbie 17 07-23-2005 04:51 PM
unable to obtain socket and address of client David@330 Linux - Newbie 5 06-01-2005 10:23 AM
obtain dns server address automatically mspier Linux - Networking 10 01-11-2004 01:33 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration