Fix byte_array_to_macaddr function
Update int_to_ip function
Simplify int_to_ip function