summaryrefslogtreecommitdiff
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-11-25 21:42:09 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-11-25 21:42:09 +0000
commitbee9252c049942113c3dc749ce22e58ffb0206c1 (patch)
tree348bdaaa4a4149c6f4dd62217a619fd767f674f7 /sys/netinet/raw_ip.c
parenta56b5fe6e523bd4a050ad9016119f4c1edfe1f64 (diff)
use ttl from setsockopt(), similar to bsd/os; ok henning, mcbride, fgsch
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 483c37ef208..1d67e99d5f3 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip.c,v 1.33 2004/11/24 01:25:42 mcbride Exp $ */
+/* $OpenBSD: raw_ip.c,v 1.34 2004/11/25 21:42:08 markus Exp $ */
/* $NetBSD: raw_ip.c,v 1.25 1996/02/18 18:58:33 christos Exp $ */
/*
@@ -208,7 +208,7 @@ rip_output(struct mbuf *m, ...)
ip->ip_len = htons(m->m_pkthdr.len);
ip->ip_src = inp->inp_laddr;
ip->ip_dst.s_addr = dst;
- ip->ip_ttl = MAXTTL;
+ ip->ip_ttl = inp->inp_ip.ip_ttl ? inp->inp_ip.ip_ttl : MAXTTL;
} else {
if (m->m_pkthdr.len > IP_MAXPACKET) {
m_freem(m);