* [PATCH 2.6.11.2 1/1] ipt_sctp chunk map definition too large
@ 2005-03-09 21:25 Tim Ozor
2005-03-09 21:30 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Tim Ozor @ 2005-03-09 21:25 UTC (permalink / raw)
To: netfilter-devel
Greetings,
In the process of implementing a native Java iptables API, I discovered
a bug in the ipt_sctp.h header file where the chunkmap is defined too
large. This obviously does not affect execution, but will result in
increased memory useage in libiptc, or in my case the java process.
Tim Ozor (tozor@jetfuelsoftware.com)
diff -uprN linux-2.6.11.2.orig/include/linux/netfilter_ipv4/ipt_sctp.h
linux-2.6.11.2/include/linux/netfilter_ipv4/ipt_sctp.h
--- linux-2.6.11.2.orig/include/linux/netfilter_ipv4/ipt_sctp.h
2005-03-09 14:55:57.367211471 -0600
+++ linux-2.6.11.2/include/linux/netfilter_ipv4/ipt_sctp.h
2005-03-09 14:57:21.203988675 -0600
@@ -22,7 +22,7 @@ struct ipt_sctp_info {
u_int16_t dpts[2]; /* Min, Max */
u_int16_t spts[2]; /* Min, Max */
- u_int32_t chunkmap[256 / sizeof (u_int32_t)]; /* Bit mask of
chunks to be matched according to RFC 2960 */
+ u_int32_t chunkmap[256 / (sizeof(u_int32_t)*8)]; /* Bit mask of
chunks to be matched according to RFC 2960 */
#define SCTP_CHUNK_MATCH_ANY 0x01 /* Match if any of the chunk
types are present */
#define SCTP_CHUNK_MATCH_ALL 0x02 /* Match if all of the chunk
types are present */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.11.2 1/1] ipt_sctp chunk map definition too large
2005-03-09 21:25 [PATCH 2.6.11.2 1/1] ipt_sctp chunk map definition too large Tim Ozor
@ 2005-03-09 21:30 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2005-03-09 21:30 UTC (permalink / raw)
To: Tim Ozor; +Cc: netfilter-devel
Tim Ozor wrote:
> Greetings,
>
> In the process of implementing a native Java iptables API, I discovered
> a bug in the ipt_sctp.h header file where the chunkmap is defined too
> large. This obviously does not affect execution, but will result in
> increased memory useage in libiptc, or in my case the java process.
Unfortunately we can't fix it this way since it breaks userspace
compatiblity. You might be able to retain compatiblity using Rusty's
new revision stuff, but I doubt it's worth it.
Regards
Patrick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-09 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 21:25 [PATCH 2.6.11.2 1/1] ipt_sctp chunk map definition too large Tim Ozor
2005-03-09 21:30 ` 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.