gre: fix returning the flags in the API