Uhh, why pass socket that isn't even used
set cli_rtable to 0 during any command execution in interface() mode. interface mode is not part of rtables, period. whatever rtable you were in prior to entering interface mode should not have any effect.
get rid of rtable manipulation in if.c since cli_rtable has nothing to do with interface mode. and remember to add actual commands to rtsol/rtadvd start/stop so something happens.
get rid of the dumbest compiler warning ever displayed in modern times
use correct arguments