same_flow_direction
if (!flow || !same_flow_direction(flow, flags)) {
if (!same_flow_direction(flow, flags)) {