1#ifndef __NET__NETUTILS_H__
2#define __NET__NETUTILS_H__
11 return (
uint16_t) ((netshort >> 8) | (netshort << 8));
16 return ((
value & 0xFF000000) >> 24) | ((
value & 0x00FF0000) >> 8)
17 | ((
value & 0x0000FF00) << 8) | ((
value & 0x000000FF) << 24);
21 return ((netlong & 0xFF000000) >> 24) | ((netlong & 0x00FF0000) >> 8)
22 | ((netlong & 0x0000FF00) << 8) | ((netlong & 0x000000FF) << 24);
volatile uint32_t buffer[5]
static uint16_t vxNtohs(uint16_t netshort)
static uint32_t vxNtohl(uint32_t netlong)
char * vxInetNtoa(uint32_t ip, char *buffer)
static uint32_t vxHtonl(uint32_t value)
static uint16_t vxHtons(uint16_t value)
uint32_t checksum16_raw(const uint16_t *data, size_t length)
uint16_t checksum16_adc(const uint16_t *data, size_t length)
uint32_t vxInetAddr(const char *addr)