mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Fixed some merge errors
This commit is contained in:
parent
5f4f07c193
commit
4bcb7accb8
@ -543,8 +543,6 @@ ip_input(struct pbuf *p, struct netif *inp)
|
|||||||
if (raw_input(p, inp) == 0)
|
if (raw_input(p, inp) == 0)
|
||||||
#endif /* LWIP_RAW */
|
#endif /* LWIP_RAW */
|
||||||
{
|
{
|
||||||
pbuf_header(p, -iphdr_hlen); /* Move to payload, no check necessary. */
|
|
||||||
|
|
||||||
switch (IPH_PROTO(iphdr)) {
|
switch (IPH_PROTO(iphdr)) {
|
||||||
#if LWIP_UDP
|
#if LWIP_UDP
|
||||||
case IP_PROTO_UDP:
|
case IP_PROTO_UDP:
|
||||||
@ -577,7 +575,6 @@ ip_input(struct pbuf *p, struct netif *inp)
|
|||||||
/* send ICMP destination protocol unreachable unless is was a broadcast */
|
/* send ICMP destination protocol unreachable unless is was a broadcast */
|
||||||
if (!ip_addr_isbroadcast(¤t_iphdr_dest, inp) &&
|
if (!ip_addr_isbroadcast(¤t_iphdr_dest, inp) &&
|
||||||
!ip_addr_ismulticast(¤t_iphdr_dest)) {
|
!ip_addr_ismulticast(¤t_iphdr_dest)) {
|
||||||
pbuf_header(p, iphdr_hlen); /* Move to ip header, no check necessary. */
|
|
||||||
p->payload = iphdr;
|
p->payload = iphdr;
|
||||||
icmp_dest_unreach(p, ICMP_DUR_PROTO);
|
icmp_dest_unreach(p, ICMP_DUR_PROTO);
|
||||||
}
|
}
|
||||||
|
@ -411,6 +411,7 @@ aborted:
|
|||||||
|
|
||||||
LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
|
LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
|
||||||
PERF_STOP("tcp_input");
|
PERF_STOP("tcp_input");
|
||||||
|
return;
|
||||||
dropped:
|
dropped:
|
||||||
TCP_STATS_INC(tcp.drop);
|
TCP_STATS_INC(tcp.drop);
|
||||||
snmp_inc_tcpinerrs();
|
snmp_inc_tcpinerrs();
|
||||||
|
Loading…
Reference in New Issue
Block a user