lwIP是否支持Zeroconf? [英] Does lwIP support Zeroconf?

查看:199
本文介绍了lwIP是否支持Zeroconf?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到 lwIP 有一些AutoIP(又名IPv4LL,又名为 RFC 3927 )代码,但是我不能确定它是否在 Zeroconf 堆栈,即mDNS和 DNS-SD (使用 RFC 2782 )。 p>

那么lwIP是否支持DNS-SD服务发现?如果没有,是否可以轻松地从像 Avahi 这样的项目(假设许可允许)中移植代码? p>

解决方案

不,lwIP不支持Zeroconf除AutoIP之外的任何部分。
我没有看过Avahi,但是将苹果mDNSResponder移植到lwIP
是非常简单的。有一点肮脏,你
必须拉回pbuf头来访问IP头以获得
发送者IP(我认为这是正确的方法在工程
为lwIP但AFAIK尚未发布)



使用mDNSResponder,您将获得服务广告和发现。


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)?

解决方案

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.

这篇关于lwIP是否支持Zeroconf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆