[PATCH] ipt_hashlimit.c: expire's type overflow when showing tuples at bad moment.

Samuel Jean sj-netfilter at cookinglinux.org
Tue Feb 1 15:53:49 CET 2005


On Tue, February 1, 2005 9:20 am, Patrick McHardy said:
> ipt_hashlimit already uses %ld. Samuel, what problem are you seeing
> exactly ?
> Is it negative times or wrapped times ?

I see wrapped time.

I've tried making it print negative values, but seems I can't get
unsigned operations to result in a signed value. Is that right ?

However,

int r = (unsigned - unsigned) gave me negative value.

>
> Regards
> Patrick

Have a nice day,

Samuel

P.S.: Please disregard that patch, I`ve send another one [PATCH 1/2] which
doesn't use unecessary variable, I think. Thank you.




More information about the netfilter-devel mailing list