diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2010-09-13 23:01:30 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-09-17 12:46:27 +0200 |
commit | 0d491754d00a70c6af675312b9de8e382240a8bb (patch) | |
tree | b3bee64b3f0e55fe556a18b05acca1f2fc3f1051 /slirp | |
parent | abdfd9500e07fab7d6ffd4385fa30a065c329a39 (diff) |
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 <hpoussin@reactos.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'slirp')
-rw-r--r-- | slirp/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/ip_input.c b/slirp/ip_input.c index 0fe0ff779e..768ab0cd49 100644 --- a/slirp/ip_input.c +++ b/slirp/ip_input.c @@ -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; } |