added rule to only get not sent packet in get_oldest_packet_seq_num; more bitwise & fixes