A method and electronic device (104) for processing incoming packets in a
communication network (100) is disclosed. The method includes filtering
(302) incoming packets in real time by using a recent offender list
(212). The method also includes classifying (304) the incoming packets as
offending packets and non-offending packets in non-real time.