Exemple #1
0
static ActionSkBuff
filter_src_port(arguments_t args, SkBuff b)
{
	const u16 port = GET_ARG(u16, args);
        return has_src_port(b, port) ? Pass(b) : Drop(b);
}
Exemple #2
0
static bool
pred_has_src_port(arguments_t args, SkBuff b)
{
	const u16 port = GET_ARG(u16, args);
	return has_src_port(b, port);
}