blob: 32bff30c00655cfeee5d6d2242dfe7e30eb8c4ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#if 0
#include <arpa/inet.h>
uint16_t ntohs(uint16_t netshort)
{
union {
uint16_t u;
unsigned char c[sizeof(uint16_t)];
} u = { netshort };
return (u.c[0] << 8) | u.c[1];
}
#endif
|