-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Discard stderr messages when using offline sniff
#2558
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2558 +/- ##
==========================================
- Coverage 88.28% 87.93% -0.35%
==========================================
Files 243 246 +3
Lines 51006 52790 +1784
==========================================
+ Hits 45032 46423 +1391
- Misses 5974 6367 +393
|
I'm not sure how debug the failure in travis pipline. So i assume I have no failure, and there's a generic problem related to the travis.yml file? |
d3c4502
to
dbdfca3
Compare
Yes. We very recently migrated our test infrastructure, this issue is being tracked #2554 |
I am fine with defaulting to |
dbdfca3
to
f0439fb
Compare
@guedou |
f0439fb
to
f22e1b0
Compare
I fail to see what the use case of I'd rather just have quiet a default |
An option to have tcpdump's stderr sent to stderr would be enough IMO |
f22e1b0
to
3f7c8c4
Compare
@gpotter2 @p-l- |
IMO the best solution would be to always discard it except when the sub process |
3f7c8c4
to
41c225b
Compare
I am fine with the current proposal. Relying on |
Totally, that's why I suggest to let tcpdump stderr go to scapy's stderr if the user wants so (by setting debug=True) |
@guedou @p-l- |
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.
Thanks!
I'm opening this PR, because in my project i'm doing a lot of offline sniffing (mostly for filtering purposes). each time i'm using
offline
feature ofsniff
I get tcpdump's stderr, which is very very annoying to me, and for the user who uses my project.I didn't make
quiet
an option insniff
for two reasons:reading from file -, link-type EN10MB (Ethernet)
message from tcpdump. it's not indicative and tells the user nothing. it's just very disturbing.sniff
outputs, not other features ofsniff
, so puttingquiet
flag in sniff just doesn't make sense.i'll be glad if you'll merge this, or to get suggestion for other solutions!
Thanks