From: Gerhard Stenzel Date: Mon, 9 Nov 2009 14:30:15 +0000 (+0100) Subject: Removes the ebtablesSaveRules() function X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=df4c57ae270415e9a789fd1f8cf0406a44f86a2d;p=libvirt.git Removes the ebtablesSaveRules() function As it was basically unimplemented and more confusing than useful at the moment. * src/libvirt_private.syms: remove from internal symbols list * src/qemu/qemu_bridge_filter.c src/util/ebtables.c: remove code and one use of the unimplemented function --- diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 5b9968438c..310376b039 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -180,7 +180,6 @@ ebtablesAddForwardAllowIn; ebtablesAddForwardPolicyReject; ebtablesContextNew; ebtablesRemoveForwardAllowIn; -ebtablesSaveRules; # event.h diff --git a/src/qemu/qemu_bridge_filter.c b/src/qemu/qemu_bridge_filter.c index 862099507c..f591917e63 100644 --- a/src/qemu/qemu_bridge_filter.c +++ b/src/qemu/qemu_bridge_filter.c @@ -44,7 +44,6 @@ networkAddEbtablesRules(struct qemud_driver *driver) { __FILE__); return err; } - ebtablesSaveRules(driver->ebtables); return 0; } diff --git a/src/util/ebtables.c b/src/util/ebtables.c index 20f33425be..4244adc775 100644 --- a/src/util/ebtables.c +++ b/src/util/ebtables.c @@ -64,12 +64,6 @@ enum { INSERT }; -static void -ebtRulesSave(ebtRules *rules) -{ - (void) rules; -} - static void ebtRuleFree(ebtRule *rule) { @@ -315,22 +309,6 @@ ebtablesContextFree(ebtablesContext *ctx) VIR_FREE(ctx); } -/** - * ebtablesSaveRules: - * @ctx: pointer to the EB table context - * - * Saves all the EB table rules associated with a context - * to disk so that if ebtables is restarted, the rules - * will automatically be reload. - */ -void -ebtablesSaveRules(ebtablesContext *ctx) -{ - ebtRulesSave(ctx->input_filter); - ebtRulesSave(ctx->forward_filter); - ebtRulesSave(ctx->nat_postrouting); -} - int ebtablesAddForwardPolicyReject(ebtablesContext *ctx) {