高中生
最后登录1970-1-1
在线时间 小时
注册时间2016-3-24
|
麻烦问一下火哥,win7和xp的网络设置一样吗?现在我遇到的问题是,在win7下开发板和电脑连接正常,开关网络助手和插拔网线都正常,但是在xp下开关一下网络助手或者插拔网线之后 就不上传数据了,不知道为什么?
它会死在:
tcp_input(struct pbuf *p, struct netif *inp)中的
for(pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
if (pcb->remote_port == tcphdr->src &&
pcb->local_port == tcphdr->dest &&
ip_addr_cmp(&(pcb->remote_ip), ¤t_iphdr_src) &&
ip_addr_cmp(&(pcb->local_ip), ¤t_iphdr_dest)) {
/* Move this PCB to the front of the list so that subsequent
lookups will be faster (we exploit locality in TCP segment
arrivals). */
LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb);
if (prev != NULL) {
prev->next = pcb->next;
pcb->next = tcp_active_pcbs;
tcp_active_pcbs = pcb;
}
LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb);
break;
}
prev = pcb;
}
|
|