Fixed build with base 4.6+
Adapted to recent changes in network-ip.