Fix the API functions for the the DHT network code.