diff options
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index fa5f938b37ee..5266df337051 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -862,7 +862,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
862 | 862 | ||
863 | type = nlh->nlmsg_type; | 863 | type = nlh->nlmsg_type; |
864 | if (type > RTM_MAX) | 864 | if (type > RTM_MAX) |
865 | return -EINVAL; | 865 | return -EOPNOTSUPP; |
866 | 866 | ||
867 | type -= RTM_BASE; | 867 | type -= RTM_BASE; |
868 | 868 | ||
@@ -885,7 +885,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
885 | 885 | ||
886 | dumpit = rtnl_get_dumpit(family, type); | 886 | dumpit = rtnl_get_dumpit(family, type); |
887 | if (dumpit == NULL) | 887 | if (dumpit == NULL) |
888 | return -EINVAL; | 888 | return -EOPNOTSUPP; |
889 | 889 | ||
890 | return netlink_dump_start(rtnl, skb, nlh, dumpit, NULL); | 890 | return netlink_dump_start(rtnl, skb, nlh, dumpit, NULL); |
891 | } | 891 | } |
@@ -913,7 +913,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
913 | 913 | ||
914 | doit = rtnl_get_doit(family, type); | 914 | doit = rtnl_get_doit(family, type); |
915 | if (doit == NULL) | 915 | if (doit == NULL) |
916 | return -EINVAL; | 916 | return -EOPNOTSUPP; |
917 | 917 | ||
918 | return doit(skb, nlh, (void *)&rta_buf[0]); | 918 | return doit(skb, nlh, (void *)&rta_buf[0]); |
919 | } | 919 | } |