ESP8266 Developer Zone The Official ESP8266 Forum 2015-12-11T14:21:18+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1506 2015-12-11T14:21:18+08:00 2015-12-11T14:21:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1506&p=5007#p5007 <![CDATA[Re: 关于 静态ARP的问题]]>
非常抱歉,目前并不支持 ETHARP_SUPPORT_STATIC_ENTRIES。
库里并不支持相关功能,因此您无法直接修改头文件,开启此功能。

Statistics: Posted by ESP_Faye — Fri Dec 11, 2015 2:21 pm


]]>
2015-12-10T09:47:03+08:00 2015-12-10T09:47:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1506&p=4979#p4979 <![CDATA[关于 静态ARP的问题]]> ESP8266 RTOS SDK V1.3.0
我在 lwipopts.h里面定义了

Code:

#define ETHARP_SUPPORT_STATIC_ENTRIES   1

然后在 代码里面使用

Code:

etharp_add_static_entry

代码头已经添加了头文件: #include "netif/etharp.h"
在编译的时候报错:
。。。。。。。。。。
/app/user/user_main.c:890: undefined reference to `etharp_add_static_entry'
collect2: error: ld returned 1 exit status

../Makefile:399: recipe for target '.output/eagle/debug/image/eagle.app.v6.out'
failed
make[1]: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1
。。。。。。。。

貌似Liblwip.a里面没有这个函数。
请问 是库里面没有这个函数,还是 我使用的方法有问题?

谢谢!

Statistics: Posted by zsf518 — Thu Dec 10, 2015 9:47 am


]]>