rtsock: Fill in the rtm_index field whenever we have an interface pointer.