linkset: Move the link_index into the common part.
3 files changed