diff --git a/doc/windivert.html b/doc/windivert.html index 1315b59..a359020 100644 --- a/doc/windivert.html +++ b/doc/windivert.html @@ -1168,7 +1168,9 @@ Use GetLastError() to get the reason for the error.
Remarks
Parses an IPv4 address stored in addrStr.
-If non-NULL, the result is stored in pAddr.
+If non-NULL, the result is stored in pAddr
+in host-byte-order.
+Use htonl() to convert the result into network-byte-order.
+pAddr[0] = 0x00112233 +pAddr[1] = 0x44556677 +pAddr[2] = 0x8899aabb +pAddr[3] = 0xccddeeff ++where each pAddr[i] is in host-byte-order. +The result can be converted into network-byte-order by setting +pAddr[i] = htonl(pAddr[i]) for each i.