Hi! > +#define ETCOUNT (sizeof(etab)/sizeof(etab[0])) ARRAY_SIZE()
> +/* > + * This is for old, broken glibc-header icmp6_filter structure definitions. > + * If icmp6.h has struct icmp6_filter with field named "data" instead > + * of the standard "icmp_filt", uncomment this line. > + */ > +/*#define icmp_filt data */ I guess that we can remove this completly. It was workaround for broken glibc-2.3.3 and older which is about 11 years old now. (glibc commit c2280dc039c69a690dd006c1f145c7ba9aa2eaad) > +enum tt { T_WILLPASS, T_WILLBLOCK, T_SETPASS, T_SETBLOCK, T_SETPASSALL, > + T_SETBLOCKALL > +}; > +struct ftent { > + char *ft_tname; /* test name, for logging */ > + unsigned char ft_sndtype; /* send type field */ > + unsigned char ft_flttype; /* filter type field */ > + enum tt ft_test; /* what macro to test */ > + int ft_expected; /* packet should pass? */ > +} ftab[] = { > + { "ICMP6_FILTER_SETPASS s 20 f 20", 20, 20, T_SETPASS, 1 }, > + { "ICMP6_FILTER_SETPASS s 20 f 21", 20, 21, T_SETPASS, 0 }, > + { "ICMP6_FILTER_SETBLOCK s 20 f 20", 20, 20, T_SETBLOCK, 0 }, > + { "ICMP6_FILTER_SETBLOCK s 20 f 21", 20, 21, T_SETBLOCK, 1 }, > + { "ICMP6_FILTER_PASSALL s 20", 20, 0, T_SETPASSALL, 1 }, > + { "ICMP6_FILTER_PASSALL s 20", 21, 0, T_SETPASSALL, 1 }, > + { "ICMP6_FILTER_BLOCKALL s 20", 20, 0, T_SETBLOCKALL, 0 }, > + { "ICMP6_FILTER_BLOCKALL s 20", 21, 0, T_SETBLOCKALL, 0 }, > + { "ICMP6_FILTER_WILLBLOCK s 20 f 21", 20, 21, T_WILLBLOCK, 0 }, > + { "ICMP6_FILTER_WILLBLOCK s 20 f 20", 20, 20, T_WILLBLOCK, 1 }, > + { "ICMP6_FILTER_WILLPASS s 20 f 21", 20, 21, T_WILLPASS, 0 }, > + { "ICMP6_FILTER_WILLPASS s 22 f 22", 22, 22, T_WILLPASS, 1 }, > +}; > + > +#define FTCOUNT (sizeof(ftab)/sizeof(ftab[0])) ARRAY_SIZE() -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list