It is currently Mon, 25 Sep 2023 10:25:42 GMT



 
Author Message
 Sending IPv6 HopByHop extension header with Router Alert
Hi,
 I hope you are doing great.
 I am posting this here as I believe Network Programming EXPERTS
visiting this group will help me out.

  Problem: I am trying to send IPV6 HopByHop extension header with
ROUTER ALERT and receive at the other end. For router alert TLV (T=5,
L=2, V=0x0001: RFC 2711). Now I am filling the structure as follows..

   struct msghdr{
      .....
      .....
    msg_control ------|
    msg_controllen=20 |
      .....           |
   }                  |
                      ->  --------------------------------
                         |    cmsg_len = 18                |
                          --------------------------------
                         |  cmsg_level=IPPROTO_IPV6        |
                          --------------------------------
                         |  cmsg_type = IPV6_HOPOPTS       |
                          ---------------------------------
                         |Next Hdr|Next Hdr Len|Type|Length|
                         | 0x00   |     0x00   |0x05|0x02  |
                          ---------------------------------
                         |2-byte value |<--2 bytes pad---->|
                         | 0x00   0x01 |                   |
                          ---------------------------------

           sendmsg(sockFd->fd, &msg, 0);

           The above calling is used to send the HBH extension header.

       I am using Solaris 2.8. Why it is not received at the other
end? Am I filling the structure correctly? Is my padding OK? I also
tried with 6 bytes padding after value.That also didn't work. BUT WHEN
I SEND HOPLIMIT OPTION, I CAN RECEIVE AT THE OTHER END SUCCESSFULLY.
What is going wrong here?

   Thanks in Advance.

  Sagar



 Mon, 23 Feb 2004 03:45:30 GMT   
 Sending IPv6 HopByHop extension header with Router Alert
In article <bc2f653.0109051145.213a1...@posting.google.com>,
        khan7...@hotmail.com (sagar) writes:

I'd need to see the source code; especially the declarations
of the structures you're using, and the instructions that
load the values in the fields.

What's the machine at your end, SPARC or Intel?
What's at the other end? A SPARC Sol8 machine, or something else?
Is it not received (ie the packet is lost), or isn't it received
correctly?

I can't tell without looking at the actual code.

--
Stefaan
--
Please visit our Webster http://xxxxxxxx.xxxx.xxx, write or e-mail to X&x
promptly,if you are interested.And X&x shall be pleased to render you any
further services.                                      -- Spam from China



 Tue, 24 Feb 2004 18:20:55 GMT   
 Sending IPv6 HopByHop extension header with Router Alert
Stefaan.Eeck...@ecc.lu (Stefaan A Eeckels) wrote in message <news:727an9.916.ln@justus.ecc.lu>...

 Thanks a lot.
 I figured it out later. I was using all 0x0000 for padding. It has to
be of type 1 (0x0100) as PADN.



 Thu, 26 Feb 2004 05:43:10 GMT   
 Sending IPv6 HopByHop extension header with Router Alert
In article <bc2f653.0109081343.2dc9f...@posting.google.com>,
        khan7...@hotmail.com (sagar) writes:

That's why it's important to post actual code... Anyway, good
luck with your project. Thanks for following up and letting
me know.

Take care,

--
Stefaan
--
Please visit our Webster http://xxxxxxxx.xxxx.xxx, write or e-mail to X&x
promptly,if you are interested.And X&x shall be pleased to render you any
further services.                                      -- Spam from China



 Thu, 26 Feb 2004 05:49:05 GMT   
 
   [ 4 post ] 

Similar Threads

1. Sending IPv6 HopByHop extension header with Router Alert

2. Sending IPv6 HopByHop extension header with Router Alert

3. IPv6 Extension headers (Re: [PATCH] IPv6 IPsec support)

4. Using Redhat Linux to generate IPv6 PDUs with Extension Headers

5. Problem receiving Multiple IPV6 extension headers

6. [IPV6] Fixed multiple mistake extension header handling

7. IPv6: Fix Length of Authentication Extension Header

8. IPv6: Privacy Extensions for Stateless Address Autoconfiguration in IPv6

9. IPv6: Privacy Extensions for Stateless Address Autoconfiguration in IPv6

10. IPv6: Privacy Extensions for Stateless Address Autoconfiguration in IPv6


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software