OpenCloudOS / nettrace

nettrace is a eBPF-based tool to trace network packet and diagnose network problem.
Other
337 stars 82 forks source link

parse_reason_enum 解析DROP REASON出存在BUG, 不能解析包含数字名称的REASON。 #120

Closed yan-ace62 closed 2 months ago

yan-ace62 commented 2 months ago

{ 19, "TCP_MD5NOTFOUND" }, { 20, "TCP_MD5UNEXPECTED" }, { 21, "TCP_MD5FAILURE" } 这些REASON中包含数字,不能正确解析。fscanf(f, "%d, \"%31[A-Z_]" 应该包含数字解析, 修改成 fscanf(f, "%d, \"%31[A-Z_0-9]"。

menglongdong commented 2 months ago

感谢提醒!已提MR修改~