Esempio n. 1
0
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);
}
Esempio n. 2
0
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);
}
Esempio n. 3
0
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;
}
Esempio n. 4
0
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 */
}