How to detect malicious packets?
<p>I have implemented a packet analyzer in Java. Now I want to detect whether the packets captured are malicious or not. For example, how do I detect a DOS attack using Java code? What is the legal size of a TCP packet? If the size is above the legal size, can the packet be considered malicious?</p>
