Hi,

 

I am testing IPFIX.

I executed "ipfix classify table add ip4 0". It did not create any classify table. Is it correct behavior?

Should I create classify table before using "classify table" command?

 

When vpp makes IPFIX export packets, it failed to create since there are no classify table.

 

vpp# show version verbose
Version:                  v16.12-rc0~188-g3f993a6
Compiled by:              root
Compile host:             vpp01-vm
Compile date:             Fri Oct  7 17:21:20 KST 2016
Compile location:         /root/vpp
Compiler:                 GCC 4.8.4
CPU model name:           Intel Xeon E312xx (Sandy Bridge)
CPU microarchitecture:    SandyBridge (SandyBridge)
CPU flags:                sse3 ssse3 sse41 sse42 avx avx2 aes
Current PID:              9167
DPDK Version:             DPDK 16.07.0
DPDK EAL init args:       -c 1 -n 4 --huge-dir /run/vpp/hugepages --file-prefix vpp -b 0000:00:03.0 --master-lcore 0 --socket-mem 256
vpp# ipfix classify table add ip4 0
vpp# show classify tables
No classifier tables configured
vpp#
vpp# set ipfix classify stream domain 0
vpp# set ipfix exporter collector 192.168.1.254 port 8888  src 192.168.1.1 fib-id 0
Collector 192.168.1.254, src address 192.168.1.1, fib index 0, path MTU 512, template resend interval 20s, udp checksum disabled
vpp#

 

Program received signal SIGSEGV, Segmentation fault.
ipfix_classify_template_rewrite (frm=0x7ffff752e5e0 <flow_report_main>, fr=0x7fffb690edcc,
    collector_address=0x7ffff752e5f0 <flow_report_main+16>, src_address=0x7ffff752e5f8 <flow_report_main+24>,
    collector_port=8888) at /root/vpp/build-data/../vnet/vnet/flow/flow_report_classify.c:71
71        ip_start = ((u8 *)(tblp->mask)) + l3_offset;
(gdb)

Thanks,

Choonho Son