Xyxue,
It’s on our todo list. In the mean time, you can use the raw session layer
apis. For examples see src/tests/vnet/session/udp_echo.c
Florin
> On May 21, 2018, at 11:08 PM, xyxue wrote:
>
> Hi Florin, Ed,
>
> I'm testing the vcl in udp mode. After our debug vpp can receive the udp
> packets , but the packets will be dropped . Trace info is shown below:
>
> Packet 1
>
> 01:46:56:707843: af-packet-input
> af_packet: hw_if_index 1 next-index 4
> tpacket2_hdr:
> status 0x81 len 106 snaplen 106 mac 66 net 80
> sec 0x5b03780d nsec 0x3498f0be vlan 0 vlan_tpid 0
> 01:47:04:449319: ethernet-input
> IP4: 02:fe:3f:8d:97:a4 -> 02:fe:6e:ca:46:82
> 01:47:04:449340: ip4-input
> UDP: 2.1.1.1 -> 2.1.1.2
> tos 0x00, ttl 255, length 92, checksum 0x758c
> fragment id 0x, flags DONT_FRAGMENT
> UDP: 3536 -> 2111
> length 72, checksum 0x8106
> 01:47:04:449349: ip4-lookup
> fib 0 dpo-idx 7 flow hash: 0x
> UDP: 2.1.1.1 -> 2.1.1.2
> tos 0x00, ttl 255, length 92, checksum 0x758c
> fragment id 0x, flags DONT_FRAGMENT
> UDP: 3536 -> 2111
> length 72, checksum 0x8106
> 01:47:04:449360: ip4-local
> UDP: 2.1.1.1 -> 2.1.1.2
> tos 0x00, ttl 255, length 92, checksum 0x758c
> fragment id 0x, flags DONT_FRAGMENT
> UDP: 3536 -> 2111
> length 72, checksum 0x8106
> 01:47:04:449367: ip4-udp-lookup
> UDP: src-port 3536 dst-port 2111
> 01:47:04:449379: udp4-input
> UDP_INPUT: connection 0, disposition 4, thread 0
> 01:47:04:449415: error-drop
> udp4-input: UDP packets enqueued
>
> Is there a plan to support the udp mode in vcl?
>
> Thanks,
> Xyxue
>