LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 07-26-2006, 04:17 AM   #1
suresh_rupineni
LQ Newbie
 
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
getting hardwrae address using rtnetlink and printing that address


i am using rtnetlink for getting the network information i.e interface details,ipaddress,hardware address,mask,broadcast address.i am getting problem while printing the hardware address.i am not able to get the full hardware address, i am getting only 4bytes in decimal format.i am using the

inet_ntop(AF_INET, RTA_DATA(rtap), hardware_addr,24);
printf("%sn",hardware_addr);
it will print 0.19.32.58 as hardware address.is the correct way of printing.is ther any other way.
 
  


Reply



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
Addressbook with address label printing basileus Linux - Software 3 03-08-2006 02:15 AM
Printing to IP address pjbii *BSD 1 08-15-2005 03:26 PM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 09:33 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

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

All times are GMT -5. The time now is 07: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