Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ private MatchField(final String name, final MatchFields id, Prerequisite<?>... p
new MatchField<IPv4Address>("tunnel_ipv4_dst", MatchFields.TUNNEL_IPV4_DST,
new Prerequisite<EthType>(MatchField.ETH_TYPE, EthType.IPv4));

public final static MatchField<IPv6Address> TUNNEL_IPV6_SRC =
new MatchField<IPv6Address>("tunnel_ipv6_src", MatchFields.TUNNEL_IPV6_SRC,
new Prerequisite<EthType>(MatchField.ETH_TYPE, EthType.IPv6));

public final static MatchField<IPv6Address> TUNNEL_IPV6_DST =
new MatchField<IPv6Address>("tunnel_ipv6_dst", MatchFields.TUNNEL_IPV6_DST,
new Prerequisite<EthType>(MatchField.ETH_TYPE, EthType.IPv6));

public final static MatchField<OFBitMask128> BSN_IN_PORTS_128 =
new MatchField<OFBitMask128>("bsn_in_ports_128", MatchFields.BSN_IN_PORTS_128);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public enum MatchFields {
ACTSET_OUTPUT,
TUNNEL_IPV4_SRC,
TUNNEL_IPV4_DST,
TUNNEL_IPV6_SRC,
TUNNEL_IPV6_DST,
BSN_IN_PORTS_128,
BSN_IN_PORTS_512,
BSN_LAG_ID,
Expand Down
24 changes: 24 additions & 0 deletions openflow_input/oxm_nicira_tun
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,27 @@ struct of_oxm_tunnel_ipv4_dst_masked : of_oxm {
of_ipv4_t value;
of_ipv4_t value_mask;
};

// Nicira extension for tun_ipv6_src
struct of_oxm_tunnel_ipv6_src : of_oxm {
uint32_t type_len == 0x0001da10;
of_ipv6_t value;
};

struct of_oxm_tunnel_ipv6_src_masked : of_oxm {
uint32_t type_len == 0x0001db20;
of_ipv6_t value;
of_ipv6_t value_mask;
};

// Nicira extension for tun_ipv6_dst
struct of_oxm_tunnel_ipv6_dst : of_oxm {
uint32_t type_len == 0x0001dc10;
of_ipv6_t value;
};

struct of_oxm_tunnel_ipv6_dst_masked : of_oxm {
uint32_t type_len == 0x0001dd20;
of_ipv6_t value;
of_ipv6_t value_mask;
};