126 |
snmp_inc_icmpoutechoreps(); |
snmp_inc_icmpoutechoreps(); |
127 |
|
|
128 |
pbuf_header(p, hlen); |
pbuf_header(p, hlen); |
129 |
ip_output_if (p, &(iphdr->src), IP_HDRINCL, |
ip_output_if(p, &(iphdr->src), IP_HDRINCL, |
130 |
IPH_TTL(iphdr), IP_PROTO_ICMP, inp); |
IPH_TTL(iphdr), 0, IP_PROTO_ICMP, inp); |
131 |
break; |
break; |
132 |
default: |
default: |
133 |
LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d code %d not supported.\n", (int)type, (int)code)); |
LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %d code %d not supported.\n", (int)type, (int)code)); |
169 |
snmp_inc_icmpoutdestunreachs(); |
snmp_inc_icmpoutdestunreachs(); |
170 |
|
|
171 |
ip_output(q, NULL, &(iphdr->src), |
ip_output(q, NULL, &(iphdr->src), |
172 |
ICMP_TTL, IP_PROTO_ICMP); |
ICMP_TTL, 0, IP_PROTO_ICMP); |
173 |
pbuf_free(q); |
pbuf_free(q); |
174 |
} |
} |
175 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
210 |
/* increase number of destination unreachable messages attempted to send */ |
/* increase number of destination unreachable messages attempted to send */ |
211 |
snmp_inc_icmpouttimeexcds(); |
snmp_inc_icmpouttimeexcds(); |
212 |
ip_output(q, NULL, &(iphdr->src), |
ip_output(q, NULL, &(iphdr->src), |
213 |
ICMP_TTL, IP_PROTO_ICMP); |
ICMP_TTL, 0, IP_PROTO_ICMP); |
214 |
pbuf_free(q); |
pbuf_free(q); |
215 |
} |
} |
216 |
|
|