예제 #1
0
파일: filter.c 프로젝트: pandaychen/PFQ
static ActionSkBuff
filter_l4_proto(arguments_t args, SkBuff b)
{
	const u8 proto = GET_ARG(u8, args);
        return is_l4_proto(b, proto) ? Pass(b) : Drop(b);
}
예제 #2
0
static bool
pred_is_l4_proto(arguments_t args, SkBuff b)
{
	const u8 protocol = GET_ARG(u8, args);
	return is_l4_proto(b, protocol);
}