in-addr-util: introduce PTR_TO_IN4_ADDR() and IN4_ADDR_TO_PTR()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 8 Jul 2023 03:23:27 +0000 (12:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 30 Jul 2023 14:15:53 +0000 (23:15 +0900)
commit9701be563ac6413a93451c53957102201b00a8af
tree936d9f675c9dd71788a634aab01ba9aa4e6e151b
parent626d653a90d6971cf0c12bd1a26235064a35ed80
in-addr-util: introduce PTR_TO_IN4_ADDR() and IN4_ADDR_TO_PTR()

These should be useful when an IPv4 address is used as a key of a
hashmap.
src/basic/in-addr-util.h