diff options
author | laforge <laforge> | 2001-08-06 18:50:21 +0000 |
---|---|---|
committer | laforge <laforge> | 2001-08-06 18:50:21 +0000 |
commit | a1187fff744cf407c010fb52a482950d958dbf02 (patch) | |
tree | d7a51c0752b5a80c8408692277f2b660ce4dfc2b /iptables.c | |
parent | e23a23bf42e4a963e39c7a858351aacb109e0b8b (diff) |
- added patch to support statically linking of iptables
- iptables-save/-restore is no longer experimental
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -649,6 +649,7 @@ find_match(const char *name, enum ipt_tryload tryload) break; } +#ifndef NO_SHARED_LIBS if (!ptr && tryload != DONT_LOAD) { char path[sizeof(IPT_LIB_DIR) + sizeof("/libipt_.so") + strlen(name)]; @@ -667,6 +668,14 @@ find_match(const char *name, enum ipt_tryload tryload) "Couldn't load match `%s':%s\n", name, dlerror()); } +#else + if (ptr && !ptr->loaded) { + if (tryload != DONT_LOAD) + ptr->loaded = 1; + else + ptr = NULL; + } +#endif if (ptr) ptr->used = 1; @@ -904,6 +913,7 @@ find_target(const char *name, enum ipt_tryload tryload) break; } +#ifndef NO_SHARED_LIBS if (!ptr && tryload != DONT_LOAD) { char path[sizeof(IPT_LIB_DIR) + sizeof("/libipt_.so") + strlen(name)]; @@ -921,6 +931,14 @@ find_target(const char *name, enum ipt_tryload tryload) "Couldn't load target `%s':%s\n", name, dlerror()); } +#else + if (ptr && !ptr->loaded) { + if (tryload != DONT_LOAD) + ptr->loaded = 1; + else + ptr = NULL; + } +#endif if (ptr) ptr->used = 1; |