mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user