Method and system for checking frame-length in a Fiber Channel frames is
provided. The method includes extracting a R_CTL value from a Fiber
Channel frame; comparing the extracted R_CTL value of the Fiber Channel
frame with R_CTL values stored in a Content Addressable Memory Table;
determining a maximum frame-length and a minimum frame-length of the
Fiber Channel frame for the extracted R_CTL value from the Content
Addressable Memory Table; and marking the Fiber Channel frame so that it
can be discarded if the frame-length is less than the minimum
frame-length of the Fiber Channel frame or greater than the maximum
frame-length of the Fiber Channel frame. The system includes a processor
that accesses a CAM stored in memory; and a receive port that extracts
and compares a R_CTL value of the Fiber Channel frame.