Hi Joel,
I've committed the patch to the source, I guess we'll wait and see.
On Mon, 18 Jul 2011 00:58:17 +0700, Joel Sing <[email protected]> wrote:
Index: tcp_input.c
===================================================================
RCS file: /cvs/src/sys/netinet/tcp_input.c,v
retrieving revision 1.250
diff -u -p -u -p -r1.250 tcp_input.c
--- tcp_input.c 13 May 2011 14:31:16 -0000 1.250
+++ tcp_input.c 17 Jul 2011 17:55:39 -0000
@@ -664,8 +664,18 @@ findpcb:
}
/* Check the minimum TTL for socket. */
- if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip->ip_ttl)
- goto drop;
+ switch (af) {
+#ifdef INET6
+ case AF_INET6:
+ if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip6->ip6_hlim)
+ goto drop;
+ break;
+#endif /* INET6 */
+ case AF_INET:
+ if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip->ip_ttl)
+ goto drop;
+ break;
+ }
tp = intotcpcb(inp);
if (tp == 0)
Thanks,
Insan Praja
--
Using Opera's revolutionary email client: http://www.opera.com/mail/