If I understand correctly, your sequence number you want is in bytes buf[22] and buf[23]. If that's true, you can use a cast to retrieve the value:
unsigned short SeqNo;
SeqNo = *(short*)&buf[22];
Note that if it's only two bytes, it's a short and not an int. Hope that helps.
Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193