1#define _LINUX_IN_H
2#include <linux/types.h>
3#include <linux/mroute.h>
4#include <netinet/ip.h>
5#include <netinet/igmp.h>
6
7#define IGMP_V3_MEMBERSHIP_REPORT 0x22
8
9#define INADDR_ALLIGMPV3_GROUP ((in_addr_t) 0xe0000016)
10
11static inline u_short ip_data_len(const struct ip *ip)
12{
13	return ntohs(ip->ip_len) - (ip->ip_hl << 2);
14}
15
16static inline void ip_set_len(struct ip *ip, u_short len)
17{
18	ip->ip_len = htons(len);
19}
20