[fabbione/kronosnet] c06be3: ring: improve looping over links