[IPSEC]: Replace x->type->{local,remote}_addr with flags