radvd.c: factor a few functions out of main