在线时间2221 小时
UID3253523
注册时间2016-3-21
NXP金币2899
该用户从未签到
超级版主
 
- 积分
- 24909
- 最后登录
- 2025-7-22
|
发表于 2017-10-11 15:05:11
|
显示全部楼层
void ethernetif_input(struct netif *netif)
{
struct pbuf *p;
LWIP_ASSERT("netif != NULL", (netif != NULL));
/* move received packet into a new pbuf */
while ((p = low_level_input(netif)) != NULL)
{
/* pass all packets to ethernet_input, which decides what packets it supports */
if (netif->input(p, netif) != ERR_OK) //会把数据送到ip-input这一层,随后会被udp-input收到
{
LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
pbuf_free(p);
p = NULL;
}
}
}
总体数据传送接收过程是按照如下所示
|
|