decode protocol number correctly.