diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-18 01:40:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:59:01 -0500 |
commit | cd21f0ac43f8d7f23573a01ada7fb2c96e686ff8 (patch) | |
tree | 42624be473dd4d4a055fc89e94e198ba7e9e931f /net/netfilter | |
parent | c0506365a928adfd5608ed6873a705ae18e2daaf (diff) |
[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>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 3dcc6f51a52..325e93a9059 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -798,7 +798,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb, | |||
798 | nf_log_unregister_pf(pf); | 798 | nf_log_unregister_pf(pf); |
799 | break; | 799 | break; |
800 | default: | 800 | default: |
801 | ret = -EINVAL; | 801 | ret = -ENOTSUPP; |
802 | break; | 802 | break; |
803 | } | 803 | } |
804 | } | 804 | } |
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index d94de48f6cd..370f0af50f4 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -740,7 +740,7 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb, | |||
740 | case NFQNL_CFG_CMD_PF_UNBIND: | 740 | case NFQNL_CFG_CMD_PF_UNBIND: |
741 | break; | 741 | break; |
742 | default: | 742 | default: |
743 | ret = -EINVAL; | 743 | ret = -ENOTSUPP; |
744 | break; | 744 | break; |
745 | } | 745 | } |
746 | } | 746 | } |