Add BYE and SACK pack/parse functions

Add NACK types, header format
routing: add nack pack/parse functions