提交 2c20cbd7 编写于 作者: N Nicolas Dichtel 提交者: David S. Miller

ipv6: use DST_* macro to set obselete field

Signed-off-by: NNicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6f3118b5
...@@ -226,7 +226,7 @@ static struct rt6_info ip6_null_entry_template = { ...@@ -226,7 +226,7 @@ static struct rt6_info ip6_null_entry_template = {
.dst = { .dst = {
.__refcnt = ATOMIC_INIT(1), .__refcnt = ATOMIC_INIT(1),
.__use = 1, .__use = 1,
.obsolete = -1, .obsolete = DST_OBSOLETE_FORCE_CHK,
.error = -ENETUNREACH, .error = -ENETUNREACH,
.input = ip6_pkt_discard, .input = ip6_pkt_discard,
.output = ip6_pkt_discard_out, .output = ip6_pkt_discard_out,
...@@ -246,7 +246,7 @@ static struct rt6_info ip6_prohibit_entry_template = { ...@@ -246,7 +246,7 @@ static struct rt6_info ip6_prohibit_entry_template = {
.dst = { .dst = {
.__refcnt = ATOMIC_INIT(1), .__refcnt = ATOMIC_INIT(1),
.__use = 1, .__use = 1,
.obsolete = -1, .obsolete = DST_OBSOLETE_FORCE_CHK,
.error = -EACCES, .error = -EACCES,
.input = ip6_pkt_prohibit, .input = ip6_pkt_prohibit,
.output = ip6_pkt_prohibit_out, .output = ip6_pkt_prohibit_out,
...@@ -261,7 +261,7 @@ static struct rt6_info ip6_blk_hole_entry_template = { ...@@ -261,7 +261,7 @@ static struct rt6_info ip6_blk_hole_entry_template = {
.dst = { .dst = {
.__refcnt = ATOMIC_INIT(1), .__refcnt = ATOMIC_INIT(1),
.__use = 1, .__use = 1,
.obsolete = -1, .obsolete = DST_OBSOLETE_FORCE_CHK,
.error = -EINVAL, .error = -EINVAL,
.input = dst_discard, .input = dst_discard,
.output = dst_discard, .output = dst_discard,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部