Jian Li | 841a8b9 | 2017-11-23 01:31:22 +0900 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Frank Wang | 69bf4dd | 2017-09-30 08:06:03 +0800 | [diff] [blame] | 16 | syntax = "proto3"; |
| 17 | option java_package = "org.onosproject.grpc.net.flow.criteria.models"; |
| 18 | |
| 19 | package net.flow.criteria; |
| 20 | |
| 21 | enum TypeProto { |
| 22 | IN_PORT = 0; |
| 23 | ETH_DST = 1; |
| 24 | ETH_SRC = 2; |
| 25 | ETH_TYPE = 3; |
| 26 | IPV4_SRC = 4; |
| 27 | IPV4_DST = 5; |
| 28 | UDP_SRC = 6; |
| 29 | UDP_DST = 7; |
| 30 | TCP_SRC = 8; |
| 31 | TCP_DST = 9; |
| 32 | VLAN_VID = 10; |
| 33 | ARP_OP = 11; |
| 34 | ARP_SPA = 12; |
| 35 | ARP_TPA = 13; |
| 36 | ARP_SHA = 14; |
| 37 | ARP_THA = 15; |
| 38 | IP_PROTO = 16; |
| 39 | ETH_DST_MASKED = 17; |
| 40 | ETH_SRC_MASKED = 18; |
| 41 | VLAN_PCP = 19; |
| 42 | INNER_VLAN_VID = 20; |
| 43 | INNER_VLAN_PCP = 21; |
| 44 | IP_DSCP = 22; |
| 45 | IP_ECN = 23; |
| 46 | IN_PHY_PORT = 24; |
| 47 | METADATA = 25; |
| 48 | TCP_SRC_MASKED = 26; |
| 49 | TCP_DST_MASKED = 27; |
| 50 | UDP_SRC_MASKED = 28; |
| 51 | UDP_DST_MASKED = 29; |
| 52 | SCTP_SRC = 30; |
| 53 | SCTP_SRC_MASKED = 31; |
| 54 | SCTP_DST = 32; |
| 55 | SCTP_DST_MASKED = 33; |
| 56 | ICMPV4_TYPE = 34; |
| 57 | ICMPV4_CODE = 35; |
| 58 | IPV6_SRC = 36; |
| 59 | IPV6_DST = 37; |
| 60 | IPV6_FLABEL = 38; |
| 61 | ICMPV6_TYPE = 39; |
| 62 | ICMPV6_CODE = 40; |
| 63 | IPV6_ND_TARGET = 41; |
| 64 | IPV6_ND_SLL = 42; |
| 65 | IPV6_ND_TLL = 43; |
| 66 | MPLS_LABEL = 44; |
| 67 | MPLS_TC = 45; |
| 68 | MPLS_BOS = 46; |
| 69 | PBB_ISID = 47; |
| 70 | TUNNEL_ID = 48; |
| 71 | IPV6_EXTHDR =49; |
| 72 | UNASSIGNED_40 = 50; |
| 73 | PBB_UCA = 51; |
| 74 | TCP_FLAGS = 52; |
| 75 | ACTSET_OUTPUT = 53; |
| 76 | PACKET_TYPE = 54; |
| 77 | OCH_SIGID = 55; |
| 78 | OCH_SIGTYPE = 56; |
| 79 | ODU_SIGID = 57; |
| 80 | ODU_SIGTYPE = 58; |
| 81 | PROTOCOL_INDEPENDENT = 59; |
| 82 | EXTENSION = 60; |
| 83 | DUMMY = 61; |
| 84 | } |
| 85 | |
| 86 | message CriterionProto { |
| 87 | TypeProto type = 1; |
| 88 | } |