On Thu, Nov 28, 2013 at 12:27:08PM +0200, Tomasz Bursztyka wrote: > 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? [ -f /proc/net/ip_tables_names ] Although built in components will show up in /sys/module/ also. Phil -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html