[QUIC] Wrong dcid len in ngx_quic_select_socket_by_dcid
Gao,Yan(ACG VCP)
gaoyan09 at baidu.com
Thu Mar 11 07:08:55 UTC 2021
Console client:
~/ngtcp2/examples/client 127.0.0.1 443 https://example.com:443/index.html --dcid=00000000000000166142cdef2ef2ca5e4be5
Bpf log:
<...>-43083 [001] d.s1 94117.746924: bpf_trace_printk: nginx quic socket len 0x1d
<...>-43083 [001] d.s1 94117.746936: bpf_trace_printk: nginx quic default route for key 0x16
<...>-43083 [000] d.s1 94117.764132: bpf_trace_printk: nginx quic socket len 0x1d
<...>-43083 [000] d.s1 94117.764140: bpf_trace_printk: nginx quic socket selected by key 0x20
<...>-43083 [000] d.s1 94117.764709: bpf_trace_printk: nginx quic socket selected by key 0x20
<...>-43083 [000] d.s1 94117.769174: bpf_trace_printk: nginx quic socket selected by key 0x20
<...>-43083 [000] d.s1 94127.852160: bpf_trace_printk: nginx quic socket selected by key 0x20
The [nginx quic socket len] is added to show the case, it shoud be 0x12, as 18 bytes
Len should assign after advance_data(1)
Patch and pcap see the attachment
Gao,Yan(ACG VCP)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20210311/a871b8e5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong_dcid_len.patch
Type: application/octet-stream
Size: 936 bytes
Desc: wrong_dcid_len.patch
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20210311/a871b8e5/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong dcid len.pcap
Type: application/octet-stream
Size: 8774 bytes
Desc: wrong dcid len.pcap
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20210311/a871b8e5/attachment-0003.obj>
More information about the nginx-devel
mailing list