Added byte order conversion functions to sr_packets.c