]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/mpls.h
datapath: Rename last_action() as nla_is_last() and move to netlink.h
[mirror_ovs.git] / datapath / mpls.h
CommitLineData
ccf43786
SH
1#ifndef MPLS_H
2#define MPLS_H 1
3
4#include <linux/if_ether.h>
5
6#define MPLS_BOS_MASK 0x00000100
7#define MPLS_HLEN 4
8
9static inline bool eth_p_mpls(__be16 eth_type)
10{
11 return eth_type == htons(ETH_P_MPLS_UC) ||
12 eth_type == htons(ETH_P_MPLS_MC);
13}
14
15#endif