* [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example?
@ 2015-04-15 2:40 황규민
2015-04-15 9:35 ` Ananyev, Konstantin
2015-04-15 14:16 ` Liu, Yong
0 siblings, 2 replies; 3+ messages in thread
From: 황규민 @ 2015-04-15 2:40 UTC (permalink / raw)
To: dev
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? and where is the example rule files?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example?
2015-04-15 2:40 [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example? 황규민
@ 2015-04-15 9:35 ` Ananyev, Konstantin
2015-04-15 14:16 ` Liu, Yong
1 sibling, 0 replies; 3+ messages in thread
From: Ananyev, Konstantin @ 2015-04-15 9:35 UTC (permalink / raw)
To: hkm73560, dev
Hi
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of ???
> Sent: Wednesday, April 15, 2015 3:40 AM
> To: dev@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 ':':
-@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
+@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example?
2015-04-15 2:40 [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example? 황규민
2015-04-15 9:35 ` Ananyev, Konstantin
@ 2015-04-15 14:16 ` Liu, Yong
1 sibling, 0 replies; 3+ messages in thread
From: Liu, Yong @ 2015-04-15 14:16 UTC (permalink / raw)
To: hkm73560, dev
Hi,
These rules parse failure for missing blank space between the start and end of port. Looks like user guide shown us the wrong format:)
L3fwd-acl sample will request at least one route rule. You can just add one simple rule as below which forward all packets to port0.
-bash-4.3# cat rule_ipv4.db
R0.0.0.0/0 0.0.0.0/0 0 : 65535 0 : 65535 0x00/0x00 0
-bash-4.3# cat rule_ipv6.db
R0:0:0:0:0:0:0:0/0 0:0:0:0:0:0:0:0/0 0 : 65535 0 : 65535 0x00/0x00 0
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of ???
> Sent: Wednesday, April 15, 2015 10:40 AM
> To: dev@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? and where is the example rule files?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-15 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 2:40 [dpdk-dev] Where is rule_ipv4.db and rule_ipv6.db for l3pwd-acl example? 황규민
2015-04-15 9:35 ` Ananyev, Konstantin
2015-04-15 14:16 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).