mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
netfilter: nft_fib: convert htonl to ntohl properly
Acctually ntohl and htonl are identical, so this doesn't affect anything, but it is conceptually wrong. Signed-off-by: Liping Zhang <[email protected]> Acked-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
ae0ac0ed6f
commit
11583438b7
3 changed files with 3 additions and 3 deletions
|
|
@ -198,7 +198,7 @@ nft_fib4_select_ops(const struct nft_ctx *ctx,
|
|||
if (!tb[NFTA_FIB_RESULT])
|
||||
return ERR_PTR(-EINVAL);
|
||||
|
||||
result = htonl(nla_get_be32(tb[NFTA_FIB_RESULT]));
|
||||
result = ntohl(nla_get_be32(tb[NFTA_FIB_RESULT]));
|
||||
|
||||
switch (result) {
|
||||
case NFT_FIB_RESULT_OIF:
|
||||
|
|
|
|||
Loading…
Reference in a new issue