[Fix] limited the input taken by sscanf for ip and mac address