A context vector, typically used in a lookup operation of an associative
memory, is generated based on a context of a received packet and the
packet itself. In one implementation, multiple interfaces can share a
common access control list as the context vector provides an indication
of the result of unique processing required because of varying contexts,
such as, but not limited to different interfaces, source addresses, and
virtual network addresses. One implementation includes an input interface
circuitry, a context indicator generator, a lookup word field generator,
and an associative memory. The context indicator generator generates a
context vector corresponding to a characteristic of the input interface
circuitry. The lookup word field generator generates one or more lookup
word vectors based on the packet. The associative memory performs a
lookup operation based on the context vector and lookup word vectors.