Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 do not copy TTL field on ipsec tunnel mode enca...
details: https://anonhg.NetBSD.org/src/rev/98700ef684d9
branches: trunk
changeset: 508608:98700ef684d9
user: itojun <itojun%NetBSD.org@localhost>
date: Sun Apr 15 01:55:49 2001 +0000
description:
do not copy TTL field on ipsec tunnel mode encapsulation. sync with kame
diffstat:
sys/netinet6/ipsec.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 2f624192c0c8 -r 98700ef684d9 sys/netinet6/ipsec.c
--- a/sys/netinet6/ipsec.c Sun Apr 15 00:21:38 2001 +0000
+++ b/sys/netinet6/ipsec.c Sun Apr 15 01:55:49 2001 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: ipsec.c,v 1.33 2001/02/08 15:04:26 itojun Exp $ */
-/* $KAME: ipsec.c,v 1.90 2001/02/05 08:21:58 itojun Exp $ */
+/* $NetBSD: ipsec.c,v 1.34 2001/04/15 01:55:49 itojun Exp $ */
+/* $KAME: ipsec.c,v 1.102 2001/04/14 16:38:59 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1998,6 +1998,7 @@
&ip->ip_src, sizeof(ip->ip_src));
bcopy(&((struct sockaddr_in *)&sav->sah->saidx.dst)->sin_addr,
&ip->ip_dst, sizeof(ip->ip_dst));
+ ip->ip_ttl = IPDEFTTL;
/* XXX Should ip_src be updated later ? */
@@ -2077,6 +2078,7 @@
&ip6->ip6_src, sizeof(ip6->ip6_src));
bcopy(&((struct sockaddr_in6 *)&sav->sah->saidx.dst)->sin6_addr,
&ip6->ip6_dst, sizeof(ip6->ip6_dst));
+ ip6->ip6_hlim = IPV6_DEFHLIM;
/* XXX Should ip6_src be updated later ? */
Home |
Main Index |
Thread Index |
Old Index