Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/netinet6 Pull up revision 1.34 (requested by itojun):
details: https://anonhg.NetBSD.org/src/rev/5089cbf171dd
branches: netbsd-1-5
changeset: 491336:5089cbf171dd
user: he <he%NetBSD.org@localhost>
date: Tue Apr 24 21:36:30 2001 +0000
description:
Pull up revision 1.34 (requested by itojun):
Do not copy TTL field on ipsec tunnel mode encapsulation.
diffstat:
sys/netinet6/ipsec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 72da8661282f -r 5089cbf171dd sys/netinet6/ipsec.c
--- a/sys/netinet6/ipsec.c Tue Apr 24 21:33:52 2001 +0000
+++ b/sys/netinet6/ipsec.c Tue Apr 24 21:36:30 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec.c,v 1.23.2.5 2001/04/06 00:34:38 he Exp $ */
+/* $NetBSD: ipsec.c,v 1.23.2.6 2001/04/24 21:36:30 he Exp $ */
/* $KAME: ipsec.c,v 1.83 2000/11/09 17:45:30 itojun Exp $ */
/*
@@ -1992,6 +1992,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 ? */
@@ -2071,6 +2072,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