forked from Minki/linux
ipv6: use DST_* macro to set obselete field
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6f3118b571
commit
2c20cbd7e3
@ -226,7 +226,7 @@ static struct rt6_info ip6_null_entry_template = {
|
||||
.dst = {
|
||||
.__refcnt = ATOMIC_INIT(1),
|
||||
.__use = 1,
|
||||
.obsolete = -1,
|
||||
.obsolete = DST_OBSOLETE_FORCE_CHK,
|
||||
.error = -ENETUNREACH,
|
||||
.input = ip6_pkt_discard,
|
||||
.output = ip6_pkt_discard_out,
|
||||
@ -246,7 +246,7 @@ static struct rt6_info ip6_prohibit_entry_template = {
|
||||
.dst = {
|
||||
.__refcnt = ATOMIC_INIT(1),
|
||||
.__use = 1,
|
||||
.obsolete = -1,
|
||||
.obsolete = DST_OBSOLETE_FORCE_CHK,
|
||||
.error = -EACCES,
|
||||
.input = ip6_pkt_prohibit,
|
||||
.output = ip6_pkt_prohibit_out,
|
||||
@ -261,7 +261,7 @@ static struct rt6_info ip6_blk_hole_entry_template = {
|
||||
.dst = {
|
||||
.__refcnt = ATOMIC_INIT(1),
|
||||
.__use = 1,
|
||||
.obsolete = -1,
|
||||
.obsolete = DST_OBSOLETE_FORCE_CHK,
|
||||
.error = -EINVAL,
|
||||
.input = dst_discard,
|
||||
.output = dst_discard,
|
||||
|
Loading…
Reference in New Issue
Block a user