mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 18:35:26 +07:00
netfilter: ipset: Fix sparse warning
"warning: cast to restricted __be32" warnings are fixed Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
9449c3cd90
commit
2006aa4a8c
@ -128,7 +128,7 @@ hash_ipmark4_uadt(struct ip_set *set, struct nlattr *tb[],
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
e.mark = ntohl(nla_get_u32(tb[IPSET_ATTR_MARK]));
|
||||
e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK]));
|
||||
e.mark &= h->markmask;
|
||||
|
||||
if (adt == IPSET_TEST ||
|
||||
@ -263,7 +263,7 @@ hash_ipmark6_uadt(struct ip_set *set, struct nlattr *tb[],
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
e.mark = ntohl(nla_get_u32(tb[IPSET_ATTR_MARK]));
|
||||
e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK]));
|
||||
e.mark &= h->markmask;
|
||||
|
||||
if (adt == IPSET_TEST) {
|
||||
|
Loading…
Reference in New Issue
Block a user