dirmngr: Use a function to increment network short.