MAC address of an IPv6 address

MAC address of an IPv6 address

NewsGroups | Search | Tools
 comp.dcom.lans.ethernet  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
MAC address of an IPv6 address Jigs 04-10-2007
Posted by Jigs on April 10, 2007, 4:42 pm
If you were  Registered and logged in, you could reply and use other advanced thread options


Hi All,

I am writing a program that tests the health of a NIC card. I am
creating a NDD socket (Data Link Access) which I will use to send ICMP
ECHO packets to a given host. This means that my application has to
build the entire packet and I have to create and add the IP/IPv6,
ICMP/
6, and MAC headers in my application. I got things to work for IP, but
I am stuck with IPv6:

1) How do I find the MAC address for an IPv6 remote host? For IP, I
use the SIOCGARP ioctl and get the MAC adress from the ARP cache. But
IPv6 does not use ARP. there is something called neighbor discovery
for IPv6, but I could not find any programatic interface to use it ..

2) How do I do a broadcast ping in IPv6? In v4, I just put the
broadcast address in the destination addr fiend of the IP header and
things worked, but what do I do for v6?

Thanks in advance for your help.

Jigs


Network Magic 20% Off NMEASY coupon code spring banner 468x60
Posted by anoop on April 10, 2007, 6:29 pm
If you were  Registered and logged in, you could reply and use other advanced thread options



> 1) How do I find the MAC address for an IPv6 remote host? For IP, I
> use the SIOCGARP ioctl and get the MAC adress from the ARP cache. But
> IPv6 does not use ARP. there is something called neighbor discovery
> for IPv6, but I could not find any programatic interface to use it ..

Try posting to comp.protocols.tcp-ip.

> 2) How do I do a broadcast ping in IPv6? In v4, I just put the
> broadcast address in the destination addr fiend of the IP header and
> things worked, but what do I do for v6?

There is no such thing as broadcast in IPv6. There are only
multicast addresses. You'd have to use one of these such
as the "all nodes" multicast address to reach all nodes
on the local link.

Anoop


Similar ThreadsPosted
Valid mac address February 7, 2006, 8:21 pm
Change MAC address June 20, 2007, 7:19 am
MAC destination address July 19, 2007, 12:06 am
Change IP and MAC address December 10, 2007, 4:59 am
Mac address and VLAns June 17, 2008, 1:27 am
Multicast MAC and Unicast IP Address August 18, 2005, 4:54 pm
Knowledge of destination MAC address July 18, 2007, 7:54 am
assigning MAC address to a VLAN March 14, 2008, 4:58 am
Source MAC address per IP packet June 15, 2008, 3:02 pm
trace laptop via hardware address July 27, 2005, 8:47 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map