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: mfkexpress
Subject: Re: [lwip-users] How to explicitly set IP6 header version = 6 in outgoing packets
Date: Mon, 1 Dec 2014 01:36:21 -0700 (MST)

No... even first nibble at offset 14 is also not 6.
Below I've quoted outgoing packet generated from my device for your
reference which has IP6H_V=0.

    q->payload  33 33 FF 12 32 24 00 00
                      21 12 32 24 86 DD *00* 00
                      00 00 00 20 3A FF 00 00
                      00 00 00 00 00 00 00 00
                      00 00 00 00 00 00 FF 02
                      00 00 00 00 00 00 00 00
                      00 01 FF 12 32 24 87 00
                      A1 7B 00 00 00 00 FE 80
                      00 00 00 00 00 00 02 00
                      21 FF FE 12 32 24 01 01
                      00 00 21 12 32 24

I think the highlighted field of above packet should be "60".

How can I explicitly set it's first nibble to "6" without calling
IP6H_VTCFL_SET() just before writing it to Tx FIFO?

Ivan Delamer-2 wrote
> 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: 

> lwip-users@

>> 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
> 
> 
> _______________________________________________
> lwip-users mailing list

> lwip-users@

> https://lists.nongnu.org/mailman/listinfo/lwip-users





--
View this message in context: 
http://lwip.100.n7.nabble.com/How-to-explicitly-set-IP6-header-version-6-in-outgoing-packets-tp23540p23564.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

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