Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
implement poll() for
startCaptureBlockingMode
#1245implement poll() for
startCaptureBlockingMode
#1245Changes from 63 commits
e383a0d
2d51095
bf88d15
207f362
1ab0abd
1568c86
b5e5f60
094479d
06136dc
d7e4630
1c98e4d
358b568
6480fac
7c08824
1d6f804
f76d432
367ba95
6feecda
c219834
62ee7e3
017d0e0
9527b25
b51e39b
cfcba7a
4975409
253e2d2
8415039
3631e5a
bec74df
5119be8
0fa40e0
1ea4902
be2a6dc
b189b7e
214fe06
8125da5
db98aaa
531c67a
c9011a3
f56f762
9a27df0
618794c
81b396c
e94e0ea
adc8b9f
b51d4b5
f082b5e
1a50a03
8622d8d
2cb4dcf
25c150d
c8c12d1
0992e5c
5ca1cb9
844ec8b
cdcc9c2
0b68421
7120404
f80953a
a280f25
430cd6f
7671f77
856f784
5f4b9dc
cd4f6e6
5938c68
620d015
0a074d1
497888a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
An error in
pcap_dispatch
is-1
and not other values:https://linux.die.net/man/3/pcap_dispatch
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.
sorry, fixed.
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.
@seladb I added some comments here to mention that manual tests are required here
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 don't think we can return
0
directly because in lines 597-600 we reset a few private members.Instead we should set
m_StopThread = true
and maybe add a new local variablepollError
and I think we can return0
in this case (poll error)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.
fixed.
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.
ditto: we cannot return
0
here. We should probably add a new local variablepollError
and set it totrue
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.
fixed.