lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] How to explicitly set IP6 header version = 6 in outgoin


From: Ivan Delamer
Subject: Re: [lwip-users] How to explicitly set IP6 header version = 6 in outgoing packets
Date: Mon, 24 Nov 2014 08:32:31 -0700

The header is now probably pointing at the Ethernet header, not the IPv6 header.

That is how it should be.

Check if byte at offset 14 has first nibble set to 6. Remember it is not the first byte that is 6. It is the first nibble of the byte.

Cheers
Ivan


Date: Sat, 22 Nov 2014 06:08:02 -0700 (MST)
From: mfkexpress <address@hidden>
To: address@hidden
Subject: Re: [lwip-users] How to explicitly set IP6 header version = 6
        in outgoing packets
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

Yes, I've set netif->output_ip6 = ethip6_output and PBUF_LINK_HLEN = 14.

Also IP6H_VTCFL_SET(ip6hdr, 6, tc, 0); is being called in ip6_output_if()
but just below this line when I checked condition:

             if (IP6H_V(ip6hdr) != 6)  {
             Uart_Puts("IP6 Header Version is not 6\n");
             }

I got above line printed on my output log which means it is not set to 6 and
also it remains "00" in outgoing packets.

Any help please...

Regards,
Mohsin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]