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 Pullup 1.35 [itojun]:



details:   https://anonhg.NetBSD.org/src/rev/6dfe304c29e2
branches:  netbsd-1-5
changeset: 490184:6dfe304c29e2
user:      tv <tv%NetBSD.org@localhost>
date:      Fri Nov 10 00:13:30 2000 +0000

description:
Pullup 1.35 [itojun]:
fix IPv4 TTL selection with AF_INET6 API.  sync with kame.  From: jdc

diffstat:

 sys/netinet6/udp6_usrreq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r b51fcec05bb9 -r 6dfe304c29e2 sys/netinet6/udp6_usrreq.c
--- a/sys/netinet6/udp6_usrreq.c        Fri Nov 10 00:12:43 2000 +0000
+++ b/sys/netinet6/udp6_usrreq.c        Fri Nov 10 00:13:30 2000 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: udp6_usrreq.c,v 1.30.2.1 2000/10/17 00:48:51 tv Exp $  */
-/*     $KAME: udp6_usrreq.c,v 1.52 2000/06/05 00:41:58 itojun Exp $    */
+/*     $NetBSD: udp6_usrreq.c,v 1.30.2.2 2000/11/10 00:13:30 tv Exp $  */
+/*     $KAME: udp6_usrreq.c,v 1.62 2000/10/19 01:11:05 itojun Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -750,7 +750,7 @@
 
                ip->ip_len = plen;
                ip->ip_p = IPPROTO_UDP;
-               ip->ip_ttl = in6p->in6p_hops;   /*XXX*/
+               ip->ip_ttl = in6_selecthlim(in6p, NULL);        /*XXX*/
                ip->ip_tos = 0;                 /*XXX*/
                bcopy(&laddr->s6_addr[12], &ip->ip_src, sizeof(ip->ip_src));
                bcopy(&faddr->s6_addr[12], &ip->ip_dst, sizeof(ip->ip_dst));



Home | Main Index | Thread Index | Old Index