blob: 4327fd49af3867279e89499ce093ae9151ad3f43 [file] [log] [blame]
# Copyright 2013, Big Switch Networks, Inc.
#
# LoxiGen is licensed under the Eclipse Public License, version 1.0 (EPL), with
# the following special exception:
#
# LOXI Exception
#
# As a special exception to the terms of the EPL, you may distribute libraries
# generated by LoxiGen (LoxiGen Libraries) under the terms of your choice, provided
# that copyright and licensing notices generated by LoxiGen are not altered or removed
# from the LoxiGen Libraries and the notice provided below is (i) included in
# the LoxiGen Libraries, if distributed in source code form and (ii) included in any
# documentation for the LoxiGen Libraries, if distributed in binary form.
#
# Notice: "Copyright 2013, Big Switch Networks, Inc. This library was generated by the LoxiGen Compiler."
#
# You may not use this file except in compliance with the EPL or LOXI Exception. You may obtain
# a copy of the EPL at:
#
# http://www.eclipse.org/legal/epl-v10.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# EPL for the specific language governing permissions and limitations
# under the EPL.
oxm_wire_type = dict(
in_port = (0 << 1),
in_port_masked = (0 << 1) + 1,
in_phy_port = (1 << 1),
in_phy_port_masked = (1 << 1) + 1,
metadata = (2 << 1),
metadata_masked = (2 << 1) + 1,
eth_dst = (3 << 1),
eth_dst_masked = (3 << 1) + 1,
eth_src = (4 << 1),
eth_src_masked = (4 << 1) + 1,
eth_type = (5 << 1),
eth_type_masked = (5 << 1) + 1,
vlan_vid = (6 << 1),
vlan_vid_masked = (6 << 1) + 1,
vlan_pcp = (7 << 1),
vlan_pcp_masked = (7 << 1) + 1,
ip_dscp = (8 << 1),
ip_dscp_masked = (8 << 1) + 1,
ip_ecn = (9 << 1),
ip_ecn_masked = (9 << 1) + 1,
ip_proto = (10 << 1),
ip_proto_masked = (10 << 1) + 1,
ipv4_src = (11 << 1),
ipv4_src_masked = (11 << 1) + 1,
ipv4_dst = (12 << 1),
ipv4_dst_masked = (12 << 1) + 1,
tcp_src = (13 << 1),
tcp_src_masked = (13 << 1) + 1,
tcp_dst = (14 << 1),
tcp_dst_masked = (14 << 1) + 1,
udp_src = (15 << 1),
udp_src_masked = (15 << 1) + 1,
udp_dst = (16 << 1),
udp_dst_masked = (16 << 1) + 1,
sctp_src = (17 << 1),
sctp_src_masked = (17 << 1) + 1,
sctp_dst = (18 << 1),
sctp_dst_masked = (18 << 1) + 1,
icmpv4_type = (19 << 1),
icmpv4_type_masked = (19 << 1) + 1,
icmpv4_code = (20 << 1),
icmpv4_code_masked = (20 << 1) + 1,
arp_op = (21 << 1),
arp_op_masked = (21 << 1) + 1,
arp_spa = (22 << 1),
arp_spa_masked = (22 << 1) + 1,
arp_tpa = (23 << 1),
arp_tpa_masked = (23 << 1) + 1,
arp_sha = (24 << 1),
arp_sha_masked = (24 << 1) + 1,
arp_tha = (25 << 1),
arp_tha_masked = (25 << 1) + 1,
ipv6_src = (26 << 1),
ipv6_src_masked = (26 << 1) + 1,
ipv6_dst = (27 << 1),
ipv6_dst_masked = (27 << 1) + 1,
ipv6_flabel = (28 << 1),
ipv6_flabel_masked = (28 << 1) + 1,
icmpv6_type = (29 << 1),
icmpv6_type_masked = (29 << 1) + 1,
icmpv6_code = (30 << 1),
icmpv6_code_masked = (30 << 1) + 1,
ipv6_nd_target = (31 << 1),
ipv6_nd_target_masked = (31 << 1) + 1,
ipv6_nd_sll = (32 << 1),
ipv6_nd_sll_masked = (32 << 1) + 1,
ipv6_nd_tll = (33 << 1),
ipv6_nd_tll_masked = (33 << 1) + 1,
mpls_label = (34 << 1),
mpls_label_masked = (34 << 1) + 1,
mpls_tc = (35 << 1),
mpls_tc_masked = (35 << 1) + 1
# FIXME Add 1.3 oxm elts
)