[PATCH 1/3] tr.c: move get_tr_ip_offset() into packet.c