How to trigger wireshark capture when run case

I try to test free5GC in my linux server, how to use wireshark to capture the pkt from end to end? how to install and start it to capture?
And another problem I met when run TestNon3GPP script, some errors occured:

[GIN] 2020/10/30 - 08:45:08 | 200 |    2.137407ms |       127.0.0.1 | POST     /nsmf-pdusession/v1/sm-contexts/urn:uuid:07b870a4-0b01-457a-8fa1-4f7a5ca5f4db/modify
WARN[2020-10-30T08:45:11-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:11-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
WARN[2020-10-30T08:45:12-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:12-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
WARN[2020-10-30T08:45:12-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:12-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
WARN[2020-10-30T08:45:13-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:13-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
2020/10/30 08:45:14 timer closed
2020/10/30 08:45:14 timer closed
WARN[2020-10-30T08:45:14-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:14-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
WARN[2020-10-30T08:45:15-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:15-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
WARN[2020-10-30T08:45:20-04:00] /home/test/free5gc/src/upf/src/up/up_path.c:119 GtpHandler() This type[255] of GTPv1 header does not implement yet  UPF=Util
ERRO[2020-10-30T08:45:20-04:00] /home/test/free5gc/src/upf/src/upf_init.c:282 PacketReceiverThread() Error handling UP socket  UPF=Util
    TestNon3GPPUE: non3gpp_test.go:1272:
        --- 60.60.0.101 ping statistics ---
    TestNon3GPPUE: non3gpp_test.go:1273: 5 packets transmitted, 0 packets received, 100% packet loss
    TestNon3GPPUE: non3gpp_test.go:1275: round-trip min/avg/max/stddev = 0s/0s/0s/0s
    TestNon3GPPUE: non3gpp_test.go:1291: Ping Failed
--- FAIL: TestNon3GPPUE (14.88s)

do you know what is the root cause??? thanks !

It seems the PDR not setting right. You should trce the pcap file to see if the PDR is setting as you wish.

how to get the pcap file? run command tcpdump when runing the case?

I want to add the tcpdump operation in the script tast.sh. do you know where and how can I add it?

Yes, that’s one of the way.

We already add it. you can look into test.sh carefully. :smiley:

but I do not see the .pcap file generated when case passed, why? will be in the free5gc folder? I see the code line