[NETFILTER]: nfnetlink_{queue,log}: return ENOTSUPP for unknown cfg commands

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy 2007-12-17 22:40:19 -08:00 committed by David S. Miller
parent c0506365a9
commit cd21f0ac43
2 changed files with 2 additions and 2 deletions

View File

@ -798,7 +798,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
nf_log_unregister_pf(pf);
break;
default:
ret = -EINVAL;
ret = -ENOTSUPP;
break;
}
}

View File

@ -740,7 +740,7 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
case NFQNL_CFG_CMD_PF_UNBIND:
break;
default:
ret = -EINVAL;
ret = -ENOTSUPP;
break;
}
}