Fix dn_comp prototype and add stub

This function is used by ping6 from iputils.