ETH_P_MIP for socket option
- In Oblig, ETH_P_MIP is set to 0x0101. If EtherType value in Ethernet Frame is less than 0x0600, then the value of EtherType represents the size of Frame. In this case, ETH_P_ALL is passed into socket function, and then ETH_P_MIP could be used to filter the MIP packets.
- Alternatively, we could set ETH_P_MIP value to be greater than 0x0600. For experimental purpose, 0x88B5 is recommended. So ETH_P_MIP needs to be set to 0x88B5. In this case, ETH_P_MIP can be directly passed into socket function.
Publisert 15. feb. 2016 00:50