lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] ip6_addr_ismulticast_ doesn't allow for transient multi


From: Ian
Subject: Re: [lwip-users] ip6_addr_ismulticast_ doesn't allow for transient multicast address
Date: Thu, 18 Dec 2014 11:20:20 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0

Done. Ref #43843

<https://savannah.nongnu.org/bugs/index.php?43843>
On 15/12/14 15:39, Ivan Delamer wrote:
> Ian,
>
> Can you file this as a bug in Savannah, so it doesn't get forgotten?
>
> Ivan
>
>
>
>> Date: Sun, 14 Dec 2014 15:20:34 +0000
>> From: Ian <address@hidden>
>> To: address@hidden
>> Subject: Re: [lwip-users] ip6_addr_ismulticast_ doesn't allow for
>>     transient multicast address
>> Message-ID: <address@hidden>
>> Content-Type: text/plain; charset="windows-1252"
>>
>> If I'd read the current RFC (rfc4291 section 2.7) I might me better
>> informed. There is also the P and R flags to be concerned with. And-ing
>> with 0xff8f0000UL may be more appropriate.
>>
>> Regards,
>>
>> Ian
>> On 13/12/14 18:52, Ian wrote:
>>> If I read RFC1884 (section 2.6) correctly the ip6_addr_ismulticast_*
>>> macros need to allow for the T-bit=1 indicating that a transient
>>> multicast address is being used. The following diff shows the changes
>>> I've made locally.
>>>
>>> Regards,
>>>
>>> Ian
>>>
>>> diff --git a/ethernet/lwip-git/src/include/ipv6/lwip/ip6_addr.h
>>> b/ethernet/lwip-git/src/include/ipv6/lwip/ip6_addr.h
>>> index 4e5f4a2..7046b57 100644
>>> --- a/ethernet/lwip-git/src/include/ipv6/lwip/ip6_addr.h
>>> +++ b/ethernet/lwip-git/src/include/ipv6/lwip/ip6_addr.h
>>> @@ -195,12 +195,12 @@ Little-endian version, stored in network order
>>> (no
>>> htonl). */
>>>  #define IP6_MULTICAST_SCOPE_ORGANIZATION_LOCAL  0x8
>>>  #define IP6_MULTICAST_SCOPE_GLOBAL              0xe
>>>  #define IP6_MULTICAST_SCOPE_RESERVEDF           0xf
>>> -#define ip6_addr_ismulticast_iflocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffff0000UL)) == PP_HTONL(0xff010000UL))
>>> -#define ip6_addr_ismulticast_linklocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffff0000UL)) == PP_HTONL(0xff020000UL))
>>> -#define ip6_addr_ismulticast_adminlocal(ip6addr)
>>> (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffff0000UL)) == PP_HTONL(0xff040000UL))
>>> -#define ip6_addr_ismulticast_sitelocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffff0000UL)) == PP_HTONL(0xff050000UL))
>>> -#define ip6_addr_ismulticast_orglocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffff0000UL)) == PP_HTONL(0xff080000UL))
>>> -#define ip6_addr_ismulticast_global(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffff0000UL)) == PP_HTONL(0xff0e0000UL))
>>> +#define ip6_addr_ismulticast_iflocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffef0000UL)) == PP_HTONL(0xff010000UL))
>>> +#define ip6_addr_ismulticast_linklocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffef0000UL)) == PP_HTONL(0xff020000UL))
>>> +#define ip6_addr_ismulticast_adminlocal(ip6addr)
>>> (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffef0000UL)) == PP_HTONL(0xff040000UL))
>>> +#define ip6_addr_ismulticast_sitelocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffef0000UL)) == PP_HTONL(0xff050000UL))
>>> +#define ip6_addr_ismulticast_orglocal(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffef0000UL)) == PP_HTONL(0xff080000UL))
>>> +#define ip6_addr_ismulticast_global(ip6addr) (((ip6addr)->addr[0] &
>>> PP_HTONL(0xffef0000UL)) == PP_HTONL(0xff0e0000UL))
>>>
>>>  /* TODO define get/set for well-know multicast addresses, e.g.
>>> ff02::1 */
>>>  #define ip6_addr_isallnodes_iflocal(ip6addr) (((ip6addr)->addr[0] ==
>>> PP_HTONL(0xff010000UL)) && \
>>>
>>> _______________________________________________
>>> lwip-users mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: lwip-ismulticast.patch
>> Type: text/x-patch
>> Size: 2146 bytes
>> Desc: not available
>> URL:
>> <http://lists.nongnu.org/archive/html/lwip-users/attachments/20141214/a43cd0d0/attachment.bin>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> lwip-users mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>> End of lwip-users Digest, Vol 136, Issue 9
>> ******************************************
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users




reply via email to

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