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

Description of pcap_next_ex return value is not complete #1059

Closed
PeiweiHu opened this issue Nov 2, 2021 · 2 comments
Closed

Description of pcap_next_ex return value is not complete #1059

PeiweiHu opened this issue Nov 2, 2021 · 2 comments

Comments

@PeiweiHu
Copy link

PeiweiHu commented Nov 2, 2021

The document says pcap_next_ex returns 1 if the packet was read without problems. However, it seems should be > 0. It's better to correct the document if it does.

@guyharris
Copy link
Member

it seems should be > 0

Under what circumstances have you found that it returns a value > 1?

@PeiweiHu
Copy link
Author

PeiweiHu commented Nov 3, 2021

it seems should be > 0

Under what circumstances have you found that it returns a value > 1?

Sorry, I looked through pcap_offline_read and thought it will return a number representing packet count, but forgot that only cnt=1 is passed in pcap_next_ex. I will be more careful next time. Sorry again.

@PeiweiHu PeiweiHu closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants