diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 16:25:56 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-13 12:12:47 +0100 |
commit | 341279e09071de01a06bde6cf988d5ec671fe0d1 (patch) | |
tree | a289aad3da0d01f81a4ef9ca4e09c3af9a35d5b7 /libiptc/libiptc.c | |
parent | bba6bc692b0e6137e13881a1f398c134822e9f83 (diff) |
libiptc: Extend struct xtc_ops
Add a few more callbacks used by iptables-save.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'libiptc/libiptc.c')
-rw-r--r-- | libiptc/libiptc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 9ecec581..f4fb09fb 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -2751,11 +2751,15 @@ TC_STRERROR(int err) const struct xtc_ops TC_OPS = { .commit = TC_COMMIT, + .init = TC_INIT, .free = TC_FREE, .builtin = TC_BUILTIN, .is_chain = TC_IS_CHAIN, .flush_entries = TC_FLUSH_ENTRIES, .create_chain = TC_CREATE_CHAIN, + .first_chain = TC_FIRST_CHAIN, + .next_chain = TC_NEXT_CHAIN, + .get_policy = TC_GET_POLICY, .set_policy = TC_SET_POLICY, .strerror = TC_STRERROR, }; |