Compare commits

..

No commits in common. "4599f551dead9eac233b91c0b9ee5879f5d0620a" and "b1edb7780f5f7192cb4a7751f89d4eb6a19ad67f" have entirely different histories.

3 changed files with 7 additions and 10 deletions

View File

@ -223,10 +223,9 @@ autoip_conflict_callback(struct netif *netif, acd_callback_enum_t state)
autoip_restart(netif); autoip_restart(netif);
break; break;
case ACD_DECLINE: case ACD_DECLINE:
/* "delete" conflicting address and increment tried addr so a new one /* "delete" conflicting address so a new one will be selected in
* will be selected in autoip_start() */ * autoip_start() */
ip4_addr_set_any(&autoip->llipaddr); ip4_addr_set_any(&autoip->llipaddr);
autoip->tried_llipaddr++;
autoip_stop(netif); autoip_stop(netif);
break; break;
default: default:

View File

@ -831,8 +831,6 @@ dhcp_start(struct netif *netif)
return ERR_MEM; return ERR_MEM;
} }
/* clear the flags, the rest is cleared below */
dhcp->flags = 0;
/* store this dhcp client in the netif */ /* store this dhcp client in the netif */
netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp); netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp);
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp\n")); LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp\n"));

View File

@ -1993,17 +1993,17 @@ tcp_parseopt(struct tcp_pcb *pcb)
return; return;
} }
/* TCP timestamp option with valid length */ /* TCP timestamp option with valid length */
tsval = (tcp_get_next_optbyte() << 24); tsval = tcp_get_next_optbyte();
tsval |= (tcp_get_next_optbyte() << 16);
tsval |= (tcp_get_next_optbyte() << 8); tsval |= (tcp_get_next_optbyte() << 8);
tsval |= tcp_get_next_optbyte(); tsval |= (tcp_get_next_optbyte() << 16);
tsval |= (tcp_get_next_optbyte() << 24);
if (flags & TCP_SYN) { if (flags & TCP_SYN) {
pcb->ts_recent = tsval; pcb->ts_recent = lwip_ntohl(tsval);
/* Enable sending timestamps in every segment now that we know /* Enable sending timestamps in every segment now that we know
the remote host supports it. */ the remote host supports it. */
tcp_set_flags(pcb, TF_TIMESTAMP); tcp_set_flags(pcb, TF_TIMESTAMP);
} else if (TCP_SEQ_BETWEEN(pcb->ts_lastacksent, seqno, seqno + tcplen)) { } else if (TCP_SEQ_BETWEEN(pcb->ts_lastacksent, seqno, seqno + tcplen)) {
pcb->ts_recent = tsval; pcb->ts_recent = lwip_ntohl(tsval);
} }
/* Advance to next option (6 bytes already read) */ /* Advance to next option (6 bytes already read) */
tcp_optidx += LWIP_TCP_OPT_LEN_TS - 6; tcp_optidx += LWIP_TCP_OPT_LEN_TS - 6;