[NETFILTER]: nfnetlink_{queue,log}: return ENOTSUPP for unknown cfg commands
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 06:40:19 +0000 (22:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:01 +0000 (14:59 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c

index 3dcc6f51a52ea28c8adad9577fee490ad2cb5cb9..325e93a9059bdf89a67ed744801e70e4c8bcff08 100644 (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;
                }
        }
index d94de48f6cdbe910e524242f44f037484a7c0c21..370f0af50f487338a91e385fce307843bda7c785 100644 (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;
                }
        }