RSTP: use enum, instead of int