Accept packets with TTL=1
PATCH 1/1 Accept packets with TTL=1
Packets with TTL=1 may be directed to local network (DHCP/DNS servers for example), so don't discard them This is required by old versions of NetBSD which send DHCP DISCOVER packets with TTL=1
Signed-off-by Hervé Poussineau <[email protected]>
--- slirp/ip_input.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
slirp/ip_input.c +1 -1
@@ -144,7 +144,7 @@ ip_input(struct mbuf *m)m_adj (m, ip->ip_len - m->m_len);/* check ip_ttl for a correct ICMP reply */ -if (ip->ip_ttl==0 || ip->ip_ttl==1 ) { +if (ip->ip_ttl==0 ) {icmp_error (m,ICMP_TIMXCEED ,ICMP_TIMXCEED_INTRANS ,0 ,"ttl" ); goto bad; }
Signature · 1 line
1.7.1.GIT
Quoted 2 lines · Hervé Poussineau
Packets with TTL=1 may be directed to local network (DHCP/DNS servers for example), so don't discard them This is required by old versions of NetBSD which send DHCP DISCOVER packets with TTL=1
Quoted 22 lines
Signed-off-by Hervé Poussineau <[email protected]>--- slirp/ip_input.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)slirp/ip_input.c +1
-1@@ -144,7 +144,7 @@ ip_input(struct mbuf *m)m_adj (m, ip->ip_len - m->m_len);/* check ip_ttl for a correct ICMP reply */ -if (ip->ip_ttl==0 || ip->ip_ttl==1 ) { +if (ip->ip_ttl==0 ) {icmp_error (m,ICMP_TIMXCEED ,ICMP_TIMXCEED_INTRANS ,0 ,"ttl" ); goto bad; }Signature · 1 line
1.7.1.GIT
Edgar E. Iglesias
AppliedQuoted 4 lines · Hervé Poussineau
Packets with TTL=1 may be directed to local network (DHCP/DNS servers for example), so don't discard them This is required by old versions of NetBSD which send DHCP DISCOVER packets with TTL=1
Signed-off-by Hervé Poussineau <[email protected]>
Applied, thanks.
Quoted 21 lines
--- slirp/ip_input.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)slirp/ip_input.c +1
-1@@ -144,7 +144,7 @@ ip_input(struct mbuf *m)m_adj (m, ip->ip_len - m->m_len);/* check ip_ttl for a correct ICMP reply */ -if (ip->ip_ttl==0 || ip->ip_ttl==1 ) { +if (ip->ip_ttl==0 ) {icmp_error (m,ICMP_TIMXCEED ,ICMP_TIMXCEED_INTRANS ,0 ,"ttl" ); goto bad; }Signature · 1 line
1.7.1.GIT