Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v retrieving revision 1.268.2.2 retrieving revision 1.268.2.3 diff -u -p -r1.268.2.2 -r1.268.2.3 --- src/sys/netinet/ip_input.c 2009/05/04 08:14:17 1.268.2.2 +++ src/sys/netinet/ip_input.c 2009/07/18 14:53:25 1.268.2.3 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.268.2.2 2009/05/04 08:14:17 yamt Exp $ */ +/* $NetBSD: ip_input.c,v 1.268.2.3 2009/07/18 14:53:25 yamt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -91,7 +91,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.268.2.2 2009/05/04 08:14:17 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.268.2.3 2009/07/18 14:53:25 yamt Exp $"); #include "opt_inet.h" #include "opt_compat_netbsd.h" @@ -2118,6 +2118,12 @@ ip_savecontrol(struct inpcb *inp, struct if (*mp) mp = &(*mp)->m_next; } + if (inp->inp_flags & INP_RECVTTL) { + *mp = sbcreatecontrol((void *) &ip->ip_ttl, + sizeof(uint8_t), IP_RECVTTL, IPPROTO_IP); + if (*mp) + mp = &(*mp)->m_next; + } } /*