Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Someone had a braino here; IP_TTL != IPDEFTTL....
details: https://anonhg.NetBSD.org/src/rev/b7cb5383228f
branches: trunk
changeset: 526006:b7cb5383228f
user: ragge <ragge%NetBSD.org@localhost>
date: Tue Apr 23 09:16:09 2002 +0000
description:
Someone had a braino here; IP_TTL != IPDEFTTL. This caused the standalone
udp traffic to only have a ttl of 4.
Found by Jens Nilsson, jens%rockstorm.se@localhost.
diffstat:
sys/lib/libsa/udp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 5d06d95b840f -r b7cb5383228f sys/lib/libsa/udp.c
--- a/sys/lib/libsa/udp.c Tue Apr 23 09:09:55 2002 +0000
+++ b/sys/lib/libsa/udp.c Tue Apr 23 09:16:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udp.c,v 1.1 2000/10/25 01:49:55 thorpej Exp $ */
+/* $NetBSD: udp.c,v 1.2 2002/04/23 09:16:09 ragge Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@@ -96,7 +96,7 @@
ip->ip_hl = sizeof(*ip) >> 2; /* half-char */
ip->ip_len = htons(len);
ip->ip_p = IPPROTO_UDP; /* char */
- ip->ip_ttl = IP_TTL; /* char */
+ ip->ip_ttl = IPDEFTTL; /* char */
ip->ip_src = d->myip;
ip->ip_dst = d->destip;
ip->ip_sum = in_cksum(ip, sizeof(*ip)); /* short, but special */
Home |
Main Index |
Thread Index |
Old Index