📄 inet.h
字号:
#ifndef __LWIP_INET_H__#define __LWIP_INET_H__#include "lwip/arch.h"#include "lwip/opt.h"#include "lwip/pbuf.h"#include "lwip/ip_addr.h"#include "arch/cpu.h"u16_t inet_chksum(void *dataptr, u16_t len);#if 0 /* optimized routine */u16_t inet_chksum4(u8_t *dataptr, u16_t len);#endifu16_t inet_chksum_pbuf(struct pbuf *p);u16_t inet_chksum_pseudo(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t proto, u16_t proto_len);u32_t inet_addr(const char *cp);s8_t inet_aton(const char *cp, struct in_addr *addr);char *inet_ntoa(struct in_addr addr); /* returns ptr to static buffer; not reentrant! */#ifdef htons#undef htons#endif /* htons */#ifdef htonl#undef htonl#endif /* htonl */#ifdef ntohs#undef ntohs#endif /* ntohs */#ifdef ntohl#undef ntohl#endif /* ntohl */#if BYTE_ORDER == BIG_ENDIAN#define htons(x) (x)#define ntohs(x) (x)#define htonl(x) (x)#define ntohl(x) (x)#else#ifdef LWIP_PREFIX_BYTEORDER_FUNCS/* workaround for naming collisions on some platforms */#define htons lwip_htons#define ntohs lwip_ntohs#define htonl lwip_htonl#define ntohl lwip_ntohl#endif /*LWIP_PREFIX_BYTEORDER_FUNCS */u16_t htons(u16_t x);u16_t ntohs(u16_t x);u32_t htonl(u32_t x);u32_t ntohl(u32_t x);#endif /* BYTE_ORDER == BIG_ENDIAN */#endif /* __LWIP_INET_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -