in reply to Selecting certain bits from a TCP header

Do you mean the reserved fields of the TCP/IP4-header?

NetPacket::TCP has already implemented accessors. After decode()-ing the raw packet, you can access the reserved fields by selecting the respective instance data.

Have a look at pack/unpack to further inspect this field.

HTH