No, you can’t do ranges in classifier. You can add multiple chained tables with different masks, but performance wise it most certainly be worse than simply create a mask with exact match for the port and adding 1112 entries for each of the ports you need to match.
--a > On 22 May 2019, at 08:15, Satya Murthy <satyamurthy1...@gmail.com> wrote: > > Hi, > > From the documentation I have read so far and from the classifier code I have > gone through: > VPP classifier works on mask and match to classify the packets. > > But, I didnt see any logic in the classifier code that classifies packets > based on any rule like "range of values". > For example: is there any VPP construct that can work for a rule like "match > packets with TCP ports ranged between 122 to 1234" ? > > The same thing with ip-address with a prefix-length in the rule. > > Please share if you have some idea on this. > > -- > Thanks & Regards, > Murthy > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#13111): https://lists.fd.io/g/vpp-dev/message/13111 > Mute This Topic: https://lists.fd.io/mt/31717199/675608 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [ayour...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13113): https://lists.fd.io/g/vpp-dev/message/13113 Mute This Topic: https://lists.fd.io/mt/31717199/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-