[dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example?

Ananyev, Konstantin konstantin.ananyev at intel.com
Wed Apr 15 11:35:35 CEST 2015


Hi

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of ???
> Sent: Wednesday, April 15, 2015 3:40 AM
> To: dev at dpdk.org
> Subject: [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example?
> 
> Hi,
> I can`t find the rule format files (rule_ipv4.db and rule_ipv6.db) so I
> can`t run the access control example.
> 
> I wrote my own rule file based on rule file example in the sample app
> document, but the example stopped saying that "Cause: ./ipv4.txt Line 1:
> parse rules error".
> My rule file likes below:
> @1.2.3.0/24 192.168.0.36/32 0:65535 0:65535 6/0xfe 0
> R0.0.0.0/0  192.168.0.36/32 0:65535 0:65535 6/0xfe 1
> R0.0.0.0/0  0.0.0.0/0       0:65535 0:65535 6/0xfe 0
> 
> what`s wrong with my rule file? 

You need to put <space>(s) ans/or <tab>(s) between ports and ':':

- at 1.2.3.0/24 192.168.0.36/32 0:65535 0:65535 6/0xfe 0
-R0.0.0.0/0  192.168.0.36/32 0:65535 0:65535 6/0xfe 1
-R0.0.0.0/0  0.0.0.0/0       0:65535 0:65535 6/0xfe 0
+ at 1.2.3.0/24 192.168.0.36/32 0 : 65535 0 : 65535 6/0xfe 0
+R0.0.0.0/0  192.168.0.36/32 0 : 65535 0 : 65535 6/0xfe 1
+R0.0.0.0/0  0.0.0.0/0       0  :       65535 0 :       65535 6/0xfe 0

>and where is the example rule files?

Good point, probably we need to add one.

Konstantin


More information about the dev mailing list