libnm-core: clarify a comment about InfiniBand hardware address matching

This commit is contained in:
Dan Winship
2014-08-20 16:13:52 -04:00
parent 32a53f786d
commit 449ff11b78

View File

@@ -2133,8 +2133,9 @@ nm_utils_hwaddr_valid (const char *asc, gssize length)
*
* 3. If @hwaddr1 and @hwaddr2 are InfiniBand hardware addresses (that is, if
* they are %INFINIBAND_ALEN bytes long in binary form) then only the last
* 8 bytes are compared, since those are the only bytes that matter for
* InfiniBand hardware address matching.
* 8 bytes are compared, since those are the only bytes that actually
* identify the hardware. (The other 12 bytes will change depending on the
* configuration of the InfiniBand fabric that the device is connected to.)
*
* If a passed-in ASCII hardware address cannot be parsed, or would parse to an
* address larger than %NM_UTILS_HWADDR_LEN_MAX, then it will silently fail to