提交 c383e13a 编写于 作者: D Daniel P. Berrange

Make ebtablesForwardPolicyReject static

The ebtablesForwardPolicyReject method is only used internally
to the ebtables code and thus should have been static.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 184d4646
......@@ -381,20 +381,7 @@ ebtablesContextFree(ebtablesContext *ctx)
VIR_FREE(ctx);
}
int
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
{
return ebtablesForwardPolicyReject(ctx, ADD);
}
int
ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx)
{
return ebtablesForwardPolicyReject(ctx, REMOVE);
}
int
static int
ebtablesForwardPolicyReject(ebtablesContext *ctx,
int action)
{
......@@ -416,6 +403,19 @@ ebtablesForwardPolicyReject(ebtablesContext *ctx,
NULL);
}
int
ebtablesAddForwardPolicyReject(ebtablesContext *ctx)
{
return ebtablesForwardPolicyReject(ctx, ADD);
}
int
ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx)
{
return ebtablesForwardPolicyReject(ctx, REMOVE);
}
/*
* Allow all traffic destined to the bridge, with a valid network address
*/
......
......@@ -61,7 +61,4 @@ int ebtablesAddForwardPolicyReject(ebtablesContext *ctx);
int ebtablesRemoveForwardPolicyReject(ebtablesContext *ctx);
int ebtablesForwardPolicyReject(ebtablesContext *ctx,
int action);
#endif /* __QEMUD_ebtabLES_H__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册