Skip to content
Commit 5f66852f authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

net: ipv4: Fix network byte ordering for netmask related computing



Remove extra ntohl() calls when checking IPv4 address against
a subnet address.

Convert also the IPv4 address to be const as the netmask related
functions do not change its value.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 60142686
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment