Create macro to ntoh_int16 buffer input

This commit is contained in:
Sakthivel Velumani
2023-11-01 21:13:20 -04:00
parent 21b269fa99
commit 128bd3d3db
2 changed files with 4 additions and 9 deletions
+3
View File
@@ -44,6 +44,9 @@
#define ntoh_int24_buf(bUF) \
((*bUF << 16) | ((*(bUF + 1)) << 8) | (*(bUF + 2)))
#define ntoh_int16_buf(bUF) \
((*(bUF) << 8) | (*(bUF + 1)))
#define IN_ADDR_TO_BUFFER(X,bUFF) INT32_TO_BUFFER((X).s_addr,(char*)bUFF)
#define IN6_ADDR_TO_BUFFER(X,bUFF) \