diff options
author | Thomas Graf <tgraf@suug.ch> | 2008-06-03 16:36:27 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-03 16:36:27 -0700 |
commit | 1f9d11c7c99da706e33646c3a9080dd5a8ef9a0b (patch) | |
tree | afd44a0780cace76bab90a48a9ba89ee4dfb6684 | |
parent | 51b77cae0d5aa8e1546fca855dcfe48ddfadfa9c (diff) | |
download | op-kernel-dev-1f9d11c7c99da706e33646c3a9080dd5a8ef9a0b.zip op-kernel-dev-1f9d11c7c99da706e33646c3a9080dd5a8ef9a0b.tar.gz |
route: Mark unused routing attributes as such
Also removes an unused policy entry for an attribute which is
only used in kernel->user direction.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/rtnetlink.h | 4 | ||||
-rw-r--r-- | net/ipv4/fib_frontend.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 44c81c7..a2aec2c 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -267,10 +267,10 @@ enum rtattr_type_t RTA_PREFSRC, RTA_METRICS, RTA_MULTIPATH, - RTA_PROTOINFO, + RTA_PROTOINFO, /* no longer used */ RTA_FLOW, RTA_CACHEINFO, - RTA_SESSION, + RTA_SESSION, /* no longer used */ RTA_MP_ALGO, /* no longer used */ RTA_TABLE, __RTA_MAX diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 0f1557a..0b2ac6a 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -506,7 +506,6 @@ const struct nla_policy rtm_ipv4_policy[RTA_MAX+1] = { [RTA_PREFSRC] = { .type = NLA_U32 }, [RTA_METRICS] = { .type = NLA_NESTED }, [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) }, - [RTA_PROTOINFO] = { .type = NLA_U32 }, [RTA_FLOW] = { .type = NLA_U32 }, }; |