Return to os-linux.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / igmpproxy / src |
igmpproxy
#define _LINUX_IN_H #include <linux/types.h> #include <linux/mroute.h> #include <netinet/ip.h> #include <netinet/igmp.h> static inline u_short ip_data_len(const struct ip *ip) { return ntohs(ip->ip_len) - (ip->ip_hl << 2); } static inline void ip_set_len(struct ip *ip, u_short len) { ip->ip_len = htons(len); }