Beispiel #1
0
int Active_DropAction (Packet* p)
{
    Active_IgnoreSession(p);

    if ( s_enabled < 2 )
        return 0;

    return _Active_DoReset(p);
}
Beispiel #2
0
int Active_DropAction (Packet* p)
{
    Active_IgnoreSession(p);

#ifdef ACTIVE_RESPONSE
    if (( s_enabled < 2 ) || (active_drop_ssn == ACTIVE_SSN_DROP_WITHOUT_RESET))
        return 0;
#endif

    return _Active_DoReset(p);
}
Beispiel #3
0
int Active_DropAction (Packet* p)
{
    Active_IgnoreSession(p);

#ifdef ACTIVE_RESPONSE
    if ( !Active_IsEnabled() )
        return 0;

    switch ( GET_IPH_PROTO(p) )
    {
        case IPPROTO_TCP:
            if ( Active_IsRSTCandidate(p) )
                Active_QueueReject();
            break;

        case IPPROTO_UDP:
            if ( Active_IsUNRCandidate(p) )
                Active_QueueReject();
            break;
    }
#endif

    return 0;
}
Beispiel #4
0
int Active_DropAction (Packet* p)
{
    Active_IgnoreSession(p);

    return _Active_DoReset(p);
}