files: get rid of net-tools usage