Support for ifroute

bnc#897394, bnc#866250
no idea. Copied from old code and I don't plan to remove it now.