Merge pull request #2989 from authmillenon/ethertype/enh/add-unknown

ng_ethertype: add unknown ethertype
This commit is contained in:
Ludwig Ortmann 2015-05-15 23:34:46 +02:00
commit a30be984ca
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ extern "C" {
#define NG_ETHERTYPE_IPV4 (0x0800) /**< Internet protocol version 4 */
#define NG_ETHERTYPE_ARP (0x0806) /**< Address resolution protocol */
#define NG_ETHERTYPE_IPV6 (0x86dd) /**< Internet protocol version 6 */
#define NG_ETHERTYPE_UNKNOWN (0xffff) /**< Reserved (no protocol specified) */
#ifdef __cplusplus
}

View File

@ -130,7 +130,7 @@ static inline uint16_t ng_nettype_to_ethertype(ng_nettype_t type)
return NG_ETHERTYPE_IPV6;
#endif
default:
return NG_ETHERTYPE_RESERVED;
return NG_ETHERTYPE_UNKNOWN;
}
}