-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add script to dump traffic on production #654
Conversation
helpers/tcpdump.py
Outdated
"-U", | ||
"-i", | ||
f"{ethname}", | ||
"-w", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use IP
and port
to sort traffic. For example - https://github.com/tempesta-tech/tempesta-test/blob/e8384f3dc4071e331c615bed50a41fd11da29d71/framework/tester.py#L491C23-L491C67
helpers/tcpdump.py
Outdated
if cur_time - t > time_to_clear_dump: | ||
os.remove(f) | ||
|
||
def __clear_tcpdump(self, cur_time, time_to_clear_dump) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use -C
(file size) and -W
(file count) options https://www.tcpdump.org/manpages/tcpdump.1.html and then this method is not needed
c3feffc
to
6209e72
Compare
044a5e4
to
eec7d7a
Compare
eec7d7a
to
d57320f
Compare
e277c31
to
2da4817
Compare
2da4817
to
caf5f61
Compare
closed by #663 |
No description provided.