ip_hdr.h
来自「操作系统源代码」· C头文件 代码 · 共 33 行
H
33 行
/*server/ip/gen/ip_hdr.h*/#ifndef __SERVER__IP__GEN__HDR_H__#define __SERVER__IP__GEN__HDR_H__typedef struct ip_hdr{ u8_t ih_vers_ihl, ih_tos; u16_t ih_length, ih_id, ih_flags_fragoff; u8_t ih_ttl, ih_proto; u16_t ih_hdr_chk; ipaddr_t ih_src, ih_dst;} ip_hdr_t;#define IH_IHL_MASK 0xf#define IH_VERSION_MASK 0xf#define IH_FRAGOFF_MASK 0x1fff#define IH_MORE_FRAGS 0x2000#define IH_DONT_FRAG 0x4000#define IH_FLAGS_UNUSED 0x8000#define IP_OPT_COPIED 0x80#define IP_OPT_NUMBER 0x1f#endif /* __SERVER__IP__GEN__HDR_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?