mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
Remove unused ebtablesRemoveForwardPolicyReject method
The ebtablesRemoveForwardPolicyReject method was unused and would not do anything useful even if called. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
6e69008f3e
commit
dafa39adbc
@ -210,35 +210,19 @@ ebtablesContextFree(ebtablesContext *ctx)
|
|||||||
VIR_FREE(ctx);
|
VIR_FREE(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
ebtablesForwardPolicyReject(ebtablesContext *ctx,
|
|
||||||
int action)
|
|
||||||
{
|
|
||||||
/* create it, if it does not exist */
|
|
||||||
if (action == ADD) {
|
|
||||||
ebtablesAddRemoveRule("--new-chain", ctx->chain, NULL,
|
|
||||||
NULL);
|
|
||||||
ebtablesAddRemoveRule("--insert", "FORWARD", "--jump",
|
|
||||||
ctx->chain, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ebtablesAddRemoveRule("-P", ctx->chain, "DROP",
|
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
|
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
|
||||||
{
|
{
|
||||||
return ebtablesForwardPolicyReject(ctx, ADD);
|
ebtablesAddRemoveRule("--new-chain", ctx->chain, NULL,
|
||||||
|
NULL);
|
||||||
|
ebtablesAddRemoveRule("--insert", "FORWARD", "--jump",
|
||||||
|
ctx->chain, NULL);
|
||||||
|
return ebtablesAddRemoveRule("-P", ctx->chain, "DROP",
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
|
||||||
ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx)
|
|
||||||
{
|
|
||||||
return ebtablesForwardPolicyReject(ctx, REMOVE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allow all traffic destined to the bridge, with a valid network address
|
* Allow all traffic destined to the bridge, with a valid network address
|
||||||
*/
|
*/
|
||||||
|
@ -42,6 +42,4 @@ int ebtablesRemoveForwardAllowIn (ebtablesContext *ctx,
|
|||||||
|
|
||||||
int ebtablesAddForwardPolicyReject(ebtablesContext *ctx);
|
int ebtablesAddForwardPolicyReject(ebtablesContext *ctx);
|
||||||
|
|
||||||
int ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx);
|
|
||||||
|
|
||||||
#endif /* __QEMUD_ebtabLES_H__ */
|
#endif /* __QEMUD_ebtabLES_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user