All of lore.kernel.org
 help / color / mirror / Atom feed
* /proc and/or /sys file to know if ip_tables is there?
@ 2013-11-28 10:27 Tomasz Bursztyka
  2013-11-28 16:10 ` Phil Oester
  0 siblings, 1 reply; 3+ messages in thread
From: Tomasz Bursztyka @ 2013-11-28 10:27 UTC (permalink / raw)
  To: netfilter-devel

Hi,

I need to know reliably at runtime whether or not ip_tables is either 
currently loaded as a module or built-in the kernel.

Testing for /sys/module/ip_tables solves the first issue, but in case of 
built-in it's not usable.

I could check for ip_tables_* symbols in /proc/kallsyms but I guess it's 
not a nice way.

Any other proper way?

Tomasz

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

end of thread, other threads:[~2013-11-29  6:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 10:27 /proc and/or /sys file to know if ip_tables is there? Tomasz Bursztyka
2013-11-28 16:10 ` Phil Oester
2013-11-29  6:01   ` Tomasz Bursztyka

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.