relay_inherit
struct relay *relay_inherit(struct relay *, struct relay *);
if (relay_inherit(rlay, r) == NULL) {