Use inet_aton

inet_addr is deprecated