blob: 150067a6a2f59a85cba1d8d4f1f541b901b06db8 [file] [log] [blame]
#include <netinet/in_systm.h>
#include <netinet/ip_mroute.h>
#include <netinet/ip.h>
#include <netinet/igmp.h>
#define IGMP_MEMBERSHIP_QUERY IGMP_HOST_MEMBERSHIP_QUERY
#define IGMP_V1_MEMBERSHIP_REPORT IGMP_v1_HOST_MEMBERSHIP_REPORT
#define IGMP_V2_MEMBERSHIP_REPORT IGMP_v2_HOST_MEMBERSHIP_REPORT
#define IGMP_V2_LEAVE_GROUP IGMP_HOST_LEAVE_MESSAGE
#define IPOPT_RA 148 /* router alert */
static inline u_short ip_data_len(const struct ip *ip)
{
return ip->ip_len;
}
static inline void ip_set_len(struct ip *ip, u_short len)
{
ip->ip_len = len;
}