updated pltap&tunnel to new netdev interface
[sliver-openvswitch.git] / datapath / datapath.c
index 48f17c0..27deec8 100644 (file)
@@ -726,6 +726,12 @@ static int validate_set(const struct nlattr *a,
 
                return validate_tp_port(flow_key);
 
+       case OVS_KEY_ATTR_SCTP:
+               if (flow_key->ip.proto != IPPROTO_SCTP)
+                       return -EINVAL;
+
+               return validate_tp_port(flow_key);
+
        default:
                return -EINVAL;
        }