luci-lib-ip: fix creating address instances from integers
authorJo-Philipp Wich <jo@mein.io>
Tue, 7 Nov 2023 21:59:08 +0000 (22:59 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 7 Nov 2023 21:59:08 +0000 (22:59 +0100)
commitac7b37ef0133ab8349c8516d5a63a57a44dddafd
tree43227b5169d35c1aea1cc257d0a90cc37089426e
parent3508984fd7f0f4e4ddabf2b27532aae15589a761
luci-lib-ip: fix creating address instances from integers

Ensure that the proper byte order is used when creating IPv4/IPv6/MAC
instances from integer values on big endian systems.

Fixes: #6678
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libs/luci-lib-ip/src/ip.c