Annotation of embedaddon/igmpproxy/src/os-freebsd.h, revision 1.1
1.1 ! misho 1: #include <net/route.h>
! 2: #include <netinet/in_systm.h>
! 3: #include <netinet/ip_mroute.h>
! 4: #include <netinet/ip.h>
! 5: #include <netinet/igmp.h>
! 6:
! 7: #if __FreeBSD_version >= 800069 && defined BURN_BRIDGES \
! 8: || __FreeBSD_version >= 800098
! 9: #define IGMP_MEMBERSHIP_QUERY IGMP_HOST_MEMBERSHIP_QUERY
! 10: #define IGMP_V1_MEMBERSHIP_REPORT IGMP_v1_HOST_MEMBERSHIP_REPORT
! 11: #define IGMP_V2_MEMBERSHIP_REPORT IGMP_v2_HOST_MEMBERSHIP_REPORT
! 12: #define IGMP_V2_LEAVE_GROUP IGMP_HOST_LEAVE_MESSAGE
! 13: #endif
! 14:
! 15: static inline u_short ip_data_len(const struct ip *ip)
! 16: {
! 17: return ip->ip_len;
! 18: }
! 19:
! 20: static inline void ip_set_len(struct ip *ip, u_short len)
! 21: {
! 22: ip->ip_len = len;
! 23: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>