예제 #1
0
static void
http_match_suite_setup(void)
{
	test_req = test_req_alloc();
	test_mlst = tfw_http_match_list_alloc();
	BUG_ON(!test_mlst);

}
예제 #2
0
/**
 * Handle the "sched_http_rules" section.
 * Allocate the tfw_sched_http_rules list. All nested rules are added to the list.
 */
static int
tfw_sched_http_cfg_begin_rules(TfwCfgSpec *cs, TfwCfgEntry *ce)
{
	DBG("begin sched_http_rules\n");

	if (!tfw_sched_http_rules)
		tfw_sched_http_rules = tfw_http_match_list_alloc();
	if (!tfw_sched_http_rules)
		return -ENOMEM;

	return 0;
}