fix byte mask for RNH port numbers and commnds