All of lore.kernel.org
 help / color / mirror / Atom feed
* ipt_TTL logic error
@ 2005-06-11 16:38 Jan Engelhardt
  2005-06-11 16:44 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2005-06-11 16:38 UTC (permalink / raw)
  To: netfilter-devel

Hello developers,


yet another bug in POM modules. Patch is:

diff -dpru linux-2.6-AS15/net/ipv4/netfilter/ipt_TTL.c linux-2.6-AS16/net/ipv4/netfilter/ipt_TTL.c
--- linux-2.6-AS15/net/ipv4/netfilter/ipt_TTL.c	2005-05-10 19:44:50.000000000 +0200
+++ linux-2.6-AS16/net/ipv4/netfilter/ipt_TTL.c	2005-06-09 21:31:52.000000000 +0200
@@ -40,7 +40,7 @@ static unsigned int ipt_ttl_target(struc
 				new_ttl = 255;
 			break;
 		case IPT_TTL_DEC:
-			new_ttl = iph->ttl + info->ttl;
+			new_ttl = iph->ttl - info->ttl;
 			if (new_ttl < 0)
 				new_ttl = 0;
 			break;
#eof


Jan Engelhardt                                                               
--                                                                            
| Gesellschaft fuer Wissenschaftliche Datenverarbeitung Goettingen,
| Am Fassberg, 37077 Goettingen, www.gwdg.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ipt_TTL logic error
  2005-06-11 16:38 ipt_TTL logic error Jan Engelhardt
@ 2005-06-11 16:44 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2005-06-11 16:44 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: netfilter-devel

Jan Engelhardt wrote:
> Hello developers,
> 
> 
> yet another bug in POM modules. Patch is:

This is already fixed in svn.

Regards
Patrick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-11 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-11 16:38 ipt_TTL logic error Jan Engelhardt
2005-06-11 16:44 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.