utils_net : Add the lost api in utils_net

This patch add the lost APIs in utils_net, something wrong happended
when rebase the patch(commit 9efb355).
@QiuMike