]> xenbits.xensource.com Git - libvirt.git/commitdiff
Removes the ebtablesSaveRules() function
authorGerhard Stenzel <gerhard.stenzel@de.ibm.com>
Mon, 9 Nov 2009 14:30:15 +0000 (15:30 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 9 Nov 2009 14:30:15 +0000 (15:30 +0100)
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

src/libvirt_private.syms
src/qemu/qemu_bridge_filter.c
src/util/ebtables.c

index 5b9968438ccd44da539d865eb5bd95e9bd394bc7..310376b0399c3d5ff02ab5ad06b79227add49f0d 100644 (file)
@@ -180,7 +180,6 @@ ebtablesAddForwardAllowIn;
 ebtablesAddForwardPolicyReject;
 ebtablesContextNew;
 ebtablesRemoveForwardAllowIn;
-ebtablesSaveRules;
 
 
 # event.h
index 862099507c6d4a79ee84c6701320c0baea6babbc..f591917e63188beb5b4b5106b99b3d7aa04acd25 100644 (file)
@@ -44,7 +44,6 @@ networkAddEbtablesRules(struct qemud_driver *driver) {
                              __FILE__);
         return err;
     }
-    ebtablesSaveRules(driver->ebtables);
 
     return 0;
 }
index 20f33425be934a783e3ce5fc5accb41a4c8c8a2a..4244adc7759fdd123e7e961589a4a5a4a898c326 100644 (file)
@@ -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)
 {