Merge pull request #2989 from authmillenon/ethertype/enh/add-unknown
ng_ethertype: add unknown ethertype
This commit is contained in:
commit
a30be984ca
@ -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
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user