net/lwip: change the error handling order
net/lwip: change the error handling order

The order of handling errors was not correct.
before:
  1. check the 2MSB of Hop-by-Hop, Destination option type
  2. check whether option type is recognized or not.
after:
  1. check whether option type is recognized or not.
  2. if it's unrecognized and 2MSB is not 0, go to exception handling.

Change-Id: I22957d241d21db7e22c4ff9c257f94e06aaf0e4d
Signed-off-by: bossjisu <800dec47d2987cee7cc3d7aee71bc11b56f5042e@samsung.com>

sunghan-chang/TizenRT,jsdosa/TizenRT,HONGCHAEHEE/TizenRT,JeonginKim/TizenRT,an4967/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,chanijjani/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,chanijjani/TizenRT,jsdosa/TizenRT,JeonginKim/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,JeonginKim/TizenRT,jsdosa/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,HONGCHAEHEE/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,JeonginKim/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,an4967/TizenRT,davidfather/TizenRT,JeonginKim/TizenRT,sunghan-chang/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,HONGCHAEHEE/TizenRT,jeongchanKim/TizenRT,jeongchanKim/TizenRT,an4967/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,Samsung/TizenRT,pillip8282/TizenRT,jeongchanKim/TizenRT,davidfather/TizenRT,HONGCHAEHEE/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,junmin-kim/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,junmin-kim/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,sunghan-chang/TizenRT,HONGCHAEHEE/TizenRT,davidfather/TizenRT,davidfather/TizenRT,HONGCHAEHEE/TizenRT,jeongchanKim/TizenRT,jsdosa/TizenRT