All of lore.kernel.org
 help / color / mirror / Atom feed
* possible issues with blowing up struct ipt_log_info
@ 2005-06-29 15:37 Roberto Nibali
  2005-06-29 15:40 ` Patrick Schaaf
  0 siblings, 1 reply; 17+ messages in thread
From: Roberto Nibali @ 2005-06-29 15:37 UTC (permalink / raw)
  To: Netfilter Developers

Hello,

For our central logging infrastructure we prefix a LOG rule with quite some
information which is not directly available in the ipt_LOG.c module. Plus this
allows our maintenance team to improve reaction time. For that I blew up the
ipt_log_info struct as follows:

-- linux-2.4.31-orig/include/linux/netfilter_ipv4/ipt_LOG.h    2000-03-17 19:56
:20 +0100
+++ linux-2.4.31-pab2/include/linux/netfilter_ipv4/ipt_LOG.h    2005-06-29 14:52
:03 +0200
@@ -9,7 +9,7 @@
 struct ipt_log_info {
        unsigned char level;
        unsigned char logflags;
-       char prefix[30];
+       char prefix[126];
 };

 #endif /*_IPT_LOG_H*/

My question is, if anyone sees any problems with this, regarding performance
degradation on 32bit boxes or with caching problems? Does anyone know? A typical
prefix entry for example looks as follows (just in case you'd ask yourself why
we need such a big entry):

`tfx3: fw-tcp [1004] a:ACCEPT s:NEW f:PREROUTING F=NOTRACK '

Where ...

   tfx3          : is the internal firewall version (changes depending on the
                   kernel booted, support from 2.0.x to 2.6.x),
   [1004]        : is the rule number of the meta rule
   a:<aaa>       : is the action taken
   s:<sss>       : is the state
   <f,m,n>:<fmn> : is the table and the chain
   F=<FFF>       : are reserved for the flags passed by the meta fw

Best regards,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Rathausgasse 31, CH-5001 Aarau  tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
terreActive AG                       Wir sichern Ihren Erfolg
-------------------------------------------------------------

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

end of thread, other threads:[~2005-07-04 11:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29 15:37 possible issues with blowing up struct ipt_log_info Roberto Nibali
2005-06-29 15:40 ` Patrick Schaaf
2005-06-29 16:08   ` Roberto Nibali
2005-06-29 16:09   ` Herve Eychenne
2005-07-01  7:08     ` Roberto Nibali
2005-07-03 12:36     ` Harald Welte
2005-07-03 22:05       ` Herve Eychenne
2005-07-04  5:55         ` Patrick Schaaf
2005-07-04  8:20           ` Roberto Nibali
2005-07-04  8:59             ` Harald Welte
2005-07-04  9:26               ` Roberto Nibali
2005-07-04  9:53                 ` Harald Welte
2005-07-04 10:13                   ` Roberto Nibali
2005-07-04 10:08             ` Herve Eychenne
2005-07-04 10:48               ` Roberto Nibali
2005-07-04 11:21                 ` Herve Eychenne
2005-07-04  9:23           ` Herve Eychenne

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.