diff options
author | Joe Stringer <joe@wand.net.nz> | 2013-08-22 20:24:44 +1200 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-22 09:29:40 -0700 |
commit | c6bcb68592b8cab528447f5ed00fcd38d0d08c39 (patch) | |
tree | 6c6625b962090e4f2727a15fffd6a27328261f8d /lib/odp-execute.c | |
parent | 10f72e3da94f99cf71ebe49cc03ef49d88a55656 (diff) |
ofproto-dpif: Add SCTP support
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/odp-execute.c')
-rw-r--r-- | lib/odp-execute.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/odp-execute.c b/lib/odp-execute.c index d505c603..0f03855d 100644 --- a/lib/odp-execute.c +++ b/lib/odp-execute.c @@ -54,6 +54,7 @@ odp_execute_set_action(struct ofpbuf *packet, const struct nlattr *a, const struct ovs_key_ipv6 *ipv6_key; const struct ovs_key_tcp *tcp_key; const struct ovs_key_udp *udp_key; + const struct ovs_key_sctp *sctp_key; switch (type) { case OVS_KEY_ATTR_PRIORITY: @@ -96,6 +97,11 @@ odp_execute_set_action(struct ofpbuf *packet, const struct nlattr *a, packet_set_udp_port(packet, udp_key->udp_src, udp_key->udp_dst); break; + case OVS_KEY_ATTR_SCTP: + sctp_key = nl_attr_get_unspec(a, sizeof(struct ovs_key_sctp)); + packet_set_sctp_port(packet, sctp_key->sctp_src, sctp_key->sctp_dst); + break; + case OVS_KEY_ATTR_MPLS: set_mpls_lse(packet, nl_attr_get_be32(a)); break; |