Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问是怎么将一次请求和对应的相应进行匹配的呢 #3

Open
ahrtolia opened this issue Aug 13, 2021 · 3 comments
Open

Comments

@ahrtolia
Copy link

大哥您好,最近在使用gopacket的方式进行抓包,看到了您的代码,受益匪浅,想问一下您是怎么做到对抓包之后的packet进行请求和响应的匹配。

@asmcos
Copy link
Owner

asmcos commented Sep 27, 2022

我这里其实也没有好的方法,所以我做了一个时间戳。用时间戳先后循序做匹配

@gzxy-0102
Copy link

大哥您好,最近在使用gopacket的方式进行抓包,看到了您的代码,受益匪浅,想问一下您是怎么做到对抓包之后的packet进行请求和响应的匹配。

今年做了类似得项目 最近在看 gopacket的TCP layer每个请求都有SEQ 一整个请求的SEQ都是相同的

@asmcos
Copy link
Owner

asmcos commented Jan 4, 2023

tcp seq 和 requests/response 的请求是2个概念。他的问题是req-resp 如何一一对应

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants