示例#1
0
文件: Rules.c 项目: GunioRobot/nfqwf
void Rule_addFilter(struct Rule *r, unsigned int group, struct Filter *fo)
{

	if (group > MAX_FITER_GROUPS-1) {
		// invalid
		ERROR_FATAL("Invalid filter group %d\n", group);
	}
	DBG(2, "rule id=%d add to group %d list %p rule %p\n", r->rule_id, group,
		r->filter_groups[group], r);

	FilterList_addTail(r->filter_groups[group], fo);
}
示例#2
0
文件: Rules.c 项目: GunioRobot/nfqwf
static int rule_filter_match_cb(struct Filter *fo, void *data)
{
	struct HttpReq *req = (struct HttpReq *) data;

	if (!fo || !fo->fo_ops) {
		ERROR_FATAL("No filter or no ops\n")
	}

	if (!fo->fo_ops->foo_matches_req) {
		return Action_nomatch;
// 		ERROR_FATAL("missing filters match check callback Filter Name= '%s'\n", fo->fo_ops->ops->obj_type)
	}
	return fo->fo_ops->foo_matches_req(fo, req);
}
示例#3
0
文件: stubs.c 项目: killvxk/NT_OS
BOOLEAN
NTAPI
MiUnmapPageTable(IN PMMPTE PointerPde)
{
    //
    // Check if this address belongs to the kernel
    //
    if (((ULONG_PTR)PointerPde > PDE_BASE) ||
        ((ULONG_PTR)PointerPde < (PDE_BASE + 1024*1024)))
    {
        //
        // Nothing to do
        //
        return TRUE;
    }

    //
    // FIXME-USER: Shouldn't get here yet
    //
    ERROR_FATAL();
    return FALSE;
}
示例#4
0
文件: bios.c 项目: hoangduit/reactos
DECLSPEC_NORETURN
VOID
FASTCALL
HalpTrap0DHandler(IN PKTRAP_FRAME TrapFrame)
{
    /* Enter the trap */
    KiEnterTrap(TrapFrame);
    
    /* Check if this is a V86 trap */
    if (TrapFrame->EFlags & EFLAGS_V86_MASK)
    {
        /* Dispatch the opcode and exit the trap */
        HalpDispatchV86Opcode(TrapFrame);
        KiEoiHelper(TrapFrame);
    }
    
    /* Strange, it isn't! This can happen during NMI */
    DPRINT1("HAL: Trap0D while not in V86 mode\n");
    KiDumpTrapFrame(TrapFrame);

    ERROR_FATAL();
    while (TRUE); /* 'noreturn' function */
}