igmp.h
来自「linux下从网卡远程启动」· C头文件 代码 · 共 24 行
H
24 行
#ifndef _IGMP_H#define _IGMP_H#define IGMP_QUERY 0x11#define IGMPv1_REPORT 0x12#define IGMPv2_REPORT 0x16#define IGMP_LEAVE 0x17#define GROUP_ALL_HOSTS 0xe0000001 /* 224.0.0.1 Host byte order */struct igmp { uint8_t type; uint8_t response_time; uint16_t chksum; in_addr group;};struct igmp_ip_t { /* Format of an igmp ip packet */ struct iphdr ip; uint8_t router_alert[4]; /* Router alert option */ struct igmp igmp;};#endif /* _IGMP_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?