Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does lwIP support Zeroconf?

I see that lwIP has some AutoIP (aka IPv4LL, aka RFC 3927) code, but I can't tell if it does anything higher up in the Zeroconf stack, namely mDNS and DNS-SD (with RFC 2782).

So, does lwIP support DNS-SD service discovery? If not, would it be easy to port code from a project like Avahi that does (assuming licensing allows it)?

like image 660
pr1001 Avatar asked Mar 03 '10 23:03

pr1001


2 Answers

No, lwIP does not support any part of Zeroconf except AutoIP. I've not looked at Avahi but porting Apples mDNSResponder to lwIP is quite straightforward. There is one bit of nastiness where you have to pull back the pbuf headers to access the IP header to get the sender IP (I think a "proper" method for this is in the works for lwIP but AFAIK it's not in a release yet).

With mDNSResponder you get both service advertisment and discovery.

like image 173
Per Knytt Avatar answered Oct 03 '22 00:10

Per Knytt


I can't comment on the LWIP part of your question (the last time I used LWIP it didn't even have IPv4LL support), but you might be interested to know that Apple have open-sourced their mDNSResponder code, available from here: http://developer.apple.com/networking/bonjour

The interesting thing about this implementation is that they provide a VxWorks platform layer which may well be a better match for porting to your embedded target than the Avahi library.

like image 44
ukembedded Avatar answered Oct 02 '22 23:10

ukembedded