File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / igmpproxy / src / os-openbsd.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 17:00:29 2012 UTC (12 years, 4 months ago) by misho
Branches: igmpproxy, MAIN
CVS tags: v0_1p0, v0_1, HEAD
igmpproxy

    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: #define INADDR_ALLRTRS_GROUP INADDR_ALLROUTERS_GROUP
   12: 
   13: static inline u_short ip_data_len(const struct ip *ip)
   14: {
   15: 	return ntohs(ip->ip_len) - (ip->ip_hl << 2);
   16: }
   17: 
   18: static inline void ip_set_len(struct ip *ip, u_short len)
   19: {
   20: 	ip->ip_len = htons(len);
   21: }

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