summaryrefslogtreecommitdiff
path: root/src/sync-mode.c
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-01-23 11:43:15 -0800
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-01-23 11:43:15 -0800
commitc482ddb3278aee162250d53ccb3b2bd2c5987b2d (patch)
tree23979c9faf3b8500d073fcc967ff48eebe805fc3 /src/sync-mode.c
parent5e4ce16d8f6e99b3aa2cf9ea757fee2f6c09d9aa (diff)
parent66da74b336fe66472f9b5d16f730e0261c5ef4af (diff)
downloadconntrack-tools-c482ddb3278aee162250d53ccb3b2bd2c5987b2d.tar.gz
conntrack-tools-c482ddb3278aee162250d53ccb3b2bd2c5987b2d.zip
Merge branch 'upstream' into oxnard
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r--src/sync-mode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c
index 2505631..10fdb9e 100644
--- a/src/sync-mode.c
+++ b/src/sync-mode.c
@@ -706,6 +706,18 @@ static int local_handler_sync(int fd, int type, void *data)
}
local_commit(fd);
break;
+ case EXP_DUMP_INT_XML:
+ if (fork_process_new(CTD_PROC_ANY, 0, NULL, NULL) == 0) {
+ STATE(mode)->internal->exp.dump(fd, NFCT_O_XML);
+ exit(EXIT_SUCCESS);
+ }
+ break;
+ case EXP_DUMP_EXT_XML:
+ if (fork_process_new(CTD_PROC_ANY, 0, NULL, NULL) == 0) {
+ STATE_SYNC(external)->exp.dump(fd, NFCT_O_XML);
+ exit(EXIT_SUCCESS);
+ }
+ break;
default:
if (STATE_SYNC(sync)->local)
ret = STATE_SYNC(sync)->local(fd, type, data);