Annotation of embedaddon/igmpproxy/src/os-netbsd.h, revision 1.1.1.1

1.1       misho       1: #include <netinet/in_systm.h>
                      2: #include <netinet/ip_mroute.h>
                      3: #include <netinet/ip.h>
                      4: #include <netinet/igmp.h>
                      5: 
                      6: #define IGMP_MEMBERSHIP_QUERY IGMP_HOST_MEMBERSHIP_QUERY
                      7: #define IGMP_V1_MEMBERSHIP_REPORT IGMP_v1_HOST_MEMBERSHIP_REPORT
                      8: #define IGMP_V2_MEMBERSHIP_REPORT IGMP_v2_HOST_MEMBERSHIP_REPORT
                      9: #define IGMP_V2_LEAVE_GROUP IGMP_HOST_LEAVE_MESSAGE
                     10: 
                     11: static inline u_short ip_data_len(const struct ip *ip)
                     12: {
                     13:        return ip->ip_len;
                     14: }
                     15: 
                     16: static inline void ip_set_len(struct ip *ip, u_short len)
                     17: {
                     18:        ip->ip_len = len;
                     19: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>