| CPC H04L 12/465 (2013.01) [H04L 47/20 (2013.01); H04L 47/31 (2013.01); H04L 47/32 (2013.01)] | 20 Claims |

|
1. A method in a network device to detect and filter virtual local area network (VLAN) packets, the method comprising:
receiving an ingress packet, the ingress packet containing one or more VLAN tags;
identifying a VLAN tag in the ingress packet;
using the identified VLAN tag to access data in the ingress packet, wherein when the identified VLAN tag has a first value, the data is at a first location in the ingress packet, wherein when the identified VLAN tag has a second value, the data is at a second location in the ingress packet different from the first location;
using the data to identify a matched rule among a plurality of rules stored in a memory of the network device; and
processing the ingress packet in accordance with one or more actions associated with the matched rule, wherein the one or more actions includes dropping the ingress packet.
|