|
@@ -104,11 +104,9 @@ static int physdev_mt_check(const struct xt_mtchk_param *par)
|
|
|
if (info->bitmask & (XT_PHYSDEV_OP_OUT | XT_PHYSDEV_OP_ISOUT) &&
|
|
if (info->bitmask & (XT_PHYSDEV_OP_OUT | XT_PHYSDEV_OP_ISOUT) &&
|
|
|
(!(info->bitmask & XT_PHYSDEV_OP_BRIDGED) ||
|
|
(!(info->bitmask & XT_PHYSDEV_OP_BRIDGED) ||
|
|
|
info->invert & XT_PHYSDEV_OP_BRIDGED) &&
|
|
info->invert & XT_PHYSDEV_OP_BRIDGED) &&
|
|
|
- par->hook_mask & ((1 << NF_INET_LOCAL_OUT) |
|
|
|
|
|
- (1 << NF_INET_FORWARD) | (1 << NF_INET_POST_ROUTING))) {
|
|
|
|
|
|
|
+ par->hook_mask & (1 << NF_INET_LOCAL_OUT)) {
|
|
|
pr_info_ratelimited("--physdev-out and --physdev-is-out only supported in the FORWARD and POSTROUTING chains with bridged traffic\n");
|
|
pr_info_ratelimited("--physdev-out and --physdev-is-out only supported in the FORWARD and POSTROUTING chains with bridged traffic\n");
|
|
|
- if (par->hook_mask & (1 << NF_INET_LOCAL_OUT))
|
|
|
|
|
- return -EINVAL;
|
|
|
|
|
|
|
+ return -EINVAL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!brnf_probed) {
|
|
if (!brnf_probed) {
|