Re: [lwip-users] Switching to dual stack LwIP

2016-10-19 Thread Dirk Ziegelmeier
there are no plans at the momet. Please file a task for it.


Ciao
Dirk

--
Dirk Ziegelmeier * d...@ziegelmeier.net * http://www.ziegelmeier.net

On Wed, Oct 19, 2016 at 5:17 AM, Aditya Prakash  wrote:

> Hi Dirk,
>
> > I guess dual-stack is not well tested with socket API :-( I did most of
> the dual-stack stuff, but since I don't use IPv6 and socket API at work, I
> have no real-life tests for it.
>
> Are there any plans to make this work, Or can this be added as a task to
> make socket API work with dual stack?
>
>
> On Mon, Oct 17, 2016 at 4:12 PM, Aditya Prakash <
> aditya.prakash...@gmail.com> wrote:
>
>> Hi,
>>
>> I am able to implement a web server using dual stack. However, I have an
>> MDNS implementation using two UDP sockets, for v4 and v6. My specification
>> requires me to join and send messages to v4 as well as v6. However, when I
>> try doing a `sendto` to the IPv4 group (inet_addr("224.0.0.251") ), using a
>> v6 socket, say fd is 'sock6',
>>
>> to.sin_family = AF_INET;
>> to.sin_port = port;
>> to.sin_addr.s_addr = inet_addr("224.0.0.251");
>>
>> len = sendto(sock6, (char *)m->header, size, 0, (struct sockaddr
>> *), sizeof(struct sockaddr_in));
>>
>> the following check fails
>>
>> ' if ((to != NULL) && !SOCK_ADDR_TYPE_MATCH(to, sock))'
>>
>> also if I try to append ::: in the beginning of the address(changing
>> family accordingly), the joingroup call fails.
>>
>> As of now I use the same above sockaddr_in `to`  to join v4 group via
>> setsockopt ADD_MEMBERSHIP. I wanted to know if it is possible to implement
>> the mdns without using the low level calls as in the lwip's example
>> mdns(i.e. using socket apis).
>>
>>
>> On Thu, Oct 6, 2016 at 6:03 PM, Aditya Prakash <
>> aditya.prakash...@gmail.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> Two years back I made a web server based on LwIP that uses two sockets,
>>> one for IPv4 and one for IPv6.
>>>
>>> However recently I have seen that there have been a quite a lot of
>>> changes regarding dual stack, I am not sure to what extent it is
>>> implemented. I was wondering whether these changes would allow me to get to
>>> use a single socket for both IPv4 and IPv6.
>>>
>>> -
>>> Thanks & Regards,
>>> Aditya Prakash
>>>
>>
>>
>>
>> --
>> -
>> Thanks & Regards,
>> Aditya Prakash
>>
>
>
>
> --
> -
> Thanks & Regards,
> Aditya Prakash
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Switching to dual stack LwIP

2016-10-18 Thread Aditya Prakash
Hi Dirk,

> I guess dual-stack is not well tested with socket API :-( I did most of
the dual-stack stuff, but since I don't use IPv6 and socket API at work, I
have no real-life tests for it.

Are there any plans to make this work, Or can this be added as a task to
make socket API work with dual stack?


On Mon, Oct 17, 2016 at 4:12 PM, Aditya Prakash  wrote:

> Hi,
>
> I am able to implement a web server using dual stack. However, I have an
> MDNS implementation using two UDP sockets, for v4 and v6. My specification
> requires me to join and send messages to v4 as well as v6. However, when I
> try doing a `sendto` to the IPv4 group (inet_addr("224.0.0.251") ), using a
> v6 socket, say fd is 'sock6',
>
> to.sin_family = AF_INET;
> to.sin_port = port;
> to.sin_addr.s_addr = inet_addr("224.0.0.251");
>
> len = sendto(sock6, (char *)m->header, size, 0, (struct sockaddr
> *), sizeof(struct sockaddr_in));
>
> the following check fails
>
> ' if ((to != NULL) && !SOCK_ADDR_TYPE_MATCH(to, sock))'
>
> also if I try to append ::: in the beginning of the address(changing
> family accordingly), the joingroup call fails.
>
> As of now I use the same above sockaddr_in `to`  to join v4 group via
> setsockopt ADD_MEMBERSHIP. I wanted to know if it is possible to implement
> the mdns without using the low level calls as in the lwip's example
> mdns(i.e. using socket apis).
>
>
> On Thu, Oct 6, 2016 at 6:03 PM, Aditya Prakash <
> aditya.prakash...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> Two years back I made a web server based on LwIP that uses two sockets,
>> one for IPv4 and one for IPv6.
>>
>> However recently I have seen that there have been a quite a lot of
>> changes regarding dual stack, I am not sure to what extent it is
>> implemented. I was wondering whether these changes would allow me to get to
>> use a single socket for both IPv4 and IPv6.
>>
>> -
>> Thanks & Regards,
>> Aditya Prakash
>>
>
>
>
> --
> -
> Thanks & Regards,
> Aditya Prakash
>



-- 
-
Thanks & Regards,
Aditya Prakash
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Switching to dual stack LwIP

2016-10-18 Thread Dirk Ziegelmeier
I guess dual-stack is not well tested with socket API :-( I did most of the
dual-stack stuff, but since I don't use IPv6 and socket API at work, I have
no real-life tests for it.

Dirk


On Mon, Oct 17, 2016 at 12:42 PM, Aditya Prakash <
aditya.prakash...@gmail.com> wrote:

> Hi,
>
> I am able to implement a web server using dual stack. However, I have an
> MDNS implementation using two UDP sockets, for v4 and v6. My specification
> requires me to join and send messages to v4 as well as v6. However, when I
> try doing a `sendto` to the IPv4 group (inet_addr("224.0.0.251") ), using a
> v6 socket, say fd is 'sock6',
>
> to.sin_family = AF_INET;
> to.sin_port = port;
> to.sin_addr.s_addr = inet_addr("224.0.0.251");
>
> len = sendto(sock6, (char *)m->header, size, 0, (struct sockaddr
> *), sizeof(struct sockaddr_in));
>
> the following check fails
>
> ' if ((to != NULL) && !SOCK_ADDR_TYPE_MATCH(to, sock))'
>
> also if I try to append ::: in the beginning of the address(changing
> family accordingly), the joingroup call fails.
>
> As of now I use the same above sockaddr_in `to`  to join v4 group via
> setsockopt ADD_MEMBERSHIP. I wanted to know if it is possible to implement
> the mdns without using the low level calls as in the lwip's example
> mdns(i.e. using socket apis).
>
>
> On Thu, Oct 6, 2016 at 6:03 PM, Aditya Prakash <
> aditya.prakash...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> Two years back I made a web server based on LwIP that uses two sockets,
>> one for IPv4 and one for IPv6.
>>
>> However recently I have seen that there have been a quite a lot of
>> changes regarding dual stack, I am not sure to what extent it is
>> implemented. I was wondering whether these changes would allow me to get to
>> use a single socket for both IPv4 and IPv6.
>>
>> -
>> Thanks & Regards,
>> Aditya Prakash
>>
>
>
>
> --
> -
> Thanks & Regards,
> Aditya Prakash
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Switching to dual stack LwIP

2016-10-06 Thread Dirk Ziegelmeier
yes, see examples in lwip-contrib apps!

On Thu, Oct 6, 2016 at 2:33 PM, Aditya Prakash 
wrote:

>
> Hi,
>
> Two years back I made a web server based on LwIP that uses two sockets,
> one for IPv4 and one for IPv6.
>
> However recently I have seen that there have been a quite a lot of changes
> regarding dual stack, I am not sure to what extent it is implemented. I was
> wondering whether these changes would allow me to get to use a single
> socket for both IPv4 and IPv6.
>
> -
> Thanks & Regards,
> Aditya Prakash
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users