CAN bus sketch

Hi. I have a problem with simple sketch. Using Atmega328P + MCP2515 + MCP2551 and coryjfowler's library I can read CAN messages in my car. I want atmega to react on 1 of 3 messages:

0x0000021f 0x01 0x00 0x00 0x0000021f 0x40 0x00 0x00 0x0000021f 0x80 0x00 0x00

Basically, in human language- If rxId == 0x0000021f & message == 0x01 0x00 0x00 (do my stuff, I'm ok with that part)

What's the easiest way to do it? Any help appreciated.

Read 4 bytes, see if they're the ones you want. Do a search for "Serial input basics" by Robin2, I think it may help you out.