提交 b52f070c 编写于 作者: T Thomas Graf 提交者: David S. Miller

[IPv4] fib: Remove unused fib_config members

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 22e1e4d8
...@@ -21,17 +21,14 @@ ...@@ -21,17 +21,14 @@
#include <net/fib_rules.h> #include <net/fib_rules.h>
struct fib_config { struct fib_config {
u8 fc_family;
u8 fc_dst_len; u8 fc_dst_len;
u8 fc_src_len;
u8 fc_tos; u8 fc_tos;
u8 fc_protocol; u8 fc_protocol;
u8 fc_scope; u8 fc_scope;
u8 fc_type; u8 fc_type;
/* 1 byte unused */ /* 3 bytes unused */
u32 fc_table; u32 fc_table;
__be32 fc_dst; __be32 fc_dst;
__be32 fc_src;
__be32 fc_gw; __be32 fc_gw;
int fc_oif; int fc_oif;
u32 fc_flags; u32 fc_flags;
......
...@@ -482,9 +482,7 @@ static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh, ...@@ -482,9 +482,7 @@ static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh,
memset(cfg, 0, sizeof(*cfg)); memset(cfg, 0, sizeof(*cfg));
rtm = nlmsg_data(nlh); rtm = nlmsg_data(nlh);
cfg->fc_family = rtm->rtm_family;
cfg->fc_dst_len = rtm->rtm_dst_len; cfg->fc_dst_len = rtm->rtm_dst_len;
cfg->fc_src_len = rtm->rtm_src_len;
cfg->fc_tos = rtm->rtm_tos; cfg->fc_tos = rtm->rtm_tos;
cfg->fc_table = rtm->rtm_table; cfg->fc_table = rtm->rtm_table;
cfg->fc_protocol = rtm->rtm_protocol; cfg->fc_protocol = rtm->rtm_protocol;
...@@ -501,9 +499,6 @@ static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh, ...@@ -501,9 +499,6 @@ static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh,
case RTA_DST: case RTA_DST:
cfg->fc_dst = nla_get_be32(attr); cfg->fc_dst = nla_get_be32(attr);
break; break;
case RTA_SRC:
cfg->fc_src = nla_get_be32(attr);
break;
case RTA_OIF: case RTA_OIF:
cfg->fc_oif = nla_get_u32(attr); cfg->fc_oif = nla_get_u32(attr);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册