mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 10:30:22 +01:00
std-aux/trivial: add code comment to NM_IS_IPv4()
This commit is contained in:
parent
17935511a5
commit
dc5ac4d83c
1 changed files with 3 additions and 0 deletions
|
|
@ -1419,6 +1419,9 @@ nm_utils_addr_family_to_char(int addr_family)
|
|||
(NM_UNIQ_T(_addr_family, uniq) == NM_AF_INET); \
|
||||
})
|
||||
|
||||
/* NM_IS_IPv4() is guaranteed to give either 0 or 1! That is an important
|
||||
* guarantee, because we often use that value to index a 2-array (where at
|
||||
* position zero is IPv6 and at position 1 IPv4). */
|
||||
#define NM_IS_IPv4(addr_family) _NM_IS_IPv4(NM_UNIQ, addr_family)
|
||||
|
||||
static inline int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue