Bookmark this page:
Yahoo!
Windows Live
del.icio.us
digg
Netscape
|
|
|||||||||||||
|
Posted by Jigs on April 10, 2007, 4:42 pm
Please log in for more 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 | |||||||||||||
|
Posted by anoop on April 10, 2007, 6:29 pm
Please log in for more thread options 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 Threads | Posted |
| MAC address of an IPv6 address | April 10, 2007, 4:42 pm |
| Mac address recovery | December 17, 2004, 9:07 am |
| Change MAC address | January 25, 2005, 8:53 am |
| 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 |
| Router MAC address | November 26, 2008, 10:34 am |
| Re: Router MAC address | November 28, 2008, 9:00 am |
| "illegal" or reserved MAC address ? | August 22, 2004, 10:03 pm |
| Picking an IP multicast address | October 29, 2004, 1:03 pm |
| IP address assignment with "SNAP" ? | November 12, 2004, 2:26 pm |
| need for redundancy: ethernet-address twice in one LAN | January 11, 2005, 5:27 pm |
| Multicast MAC and Unicast IP Address | August 18, 2005, 7:54 pm |

MAC address of an IPv6 address
Yahoo!
Windows Live
del.icio.us
digg
Netscape 


> 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 ..