Adding Tomato ifdef for netfilter chain to check
To allow for "drop-in" upgrades of Miniupnp within Tomato firmware, submitting this change back upstream.
Original source:
#if defined(USE_NETFILTER)
/* Hardcoded for now. Ideally would come from .conf file */
+# ifdef TOMATO
+ char *chains_to_check[] = { "WANPREROUTING" , 0 };
+# else
char *chains_to_check[] = { "PREROUTING" , 0 };
# endif
+#endif
int
port_in_use(const char *if_name,
