inet.h
来自「LWIP1.1.1在UCOS-II2.61上的移植」· C头文件 代码 · 共 59 行
H
59 行
#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 + =
减小字号Ctrl + -
显示快捷键?