mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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
This commit is contained in:
parent
0f04b58730
commit
df4c57ae27
@ -180,7 +180,6 @@ ebtablesAddForwardAllowIn;
|
|||||||
ebtablesAddForwardPolicyReject;
|
ebtablesAddForwardPolicyReject;
|
||||||
ebtablesContextNew;
|
ebtablesContextNew;
|
||||||
ebtablesRemoveForwardAllowIn;
|
ebtablesRemoveForwardAllowIn;
|
||||||
ebtablesSaveRules;
|
|
||||||
|
|
||||||
|
|
||||||
# event.h
|
# event.h
|
||||||
|
@ -44,7 +44,6 @@ networkAddEbtablesRules(struct qemud_driver *driver) {
|
|||||||
__FILE__);
|
__FILE__);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
ebtablesSaveRules(driver->ebtables);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -64,12 +64,6 @@ enum {
|
|||||||
INSERT
|
INSERT
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
|
||||||
ebtRulesSave(ebtRules *rules)
|
|
||||||
{
|
|
||||||
(void) rules;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ebtRuleFree(ebtRule *rule)
|
ebtRuleFree(ebtRule *rule)
|
||||||
{
|
{
|
||||||
@ -315,22 +309,6 @@ ebtablesContextFree(ebtablesContext *ctx)
|
|||||||
VIR_FREE(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
|
int
|
||||||
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
|
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user