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

Notices


Closed Thread
  Search this Thread
Old 04-12-2006, 04:12 PM   #1
dogslayer
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, 05:02 AM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
check answer for this in your same question at http://www.linuxquestions.org/questi...d.php?t=434813
 
Old 04-14-2006, 07:22 AM   #3
david_ross
Moderator
 
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.

http://www.linuxquestions.org/rules.php

Please continue here:
http://www.linuxquestions.org/questi...d.php?t=434813
 
  


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 01:44 PM
how to obtain someone's ip address through netstat dr_zayus69 Linux - Networking 5 08-13-2005 11:06 PM
Can't obtain IP address for my wireless card trialanderror Linux - Newbie 17 07-23-2005 03:51 PM
unable to obtain socket and address of client David@330 Linux - Newbie 5 06-01-2005 09:23 AM
obtain dns server address automatically mspier Linux - Networking 10 01-11-2004 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:39 PM.

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