resync with kernel, add metric and IFF_LOOPBACK