Skip to content

Commit

Permalink
v1.0.0 - Pcap is out of beta.
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalt committed Aug 28, 2013
1 parent 92164a3 commit c26f068
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
10 changes: 8 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
Changelog
=========

## v0.3.3 - April 21, 2012
## v1.0.0 - August 28, 2013

Support for multiple sessions is introduced. Pcap is officially out of beta.

## v0.3.3 - April 21, 2013

Resolved "Symbol pcap_binding_module not found" by adding NODE_MODULE directive.

## v0.3.2 - April 9, 2012
## v0.3.2 - April 9, 2013

Bumped version to test npm install

## v0.3.0 - January 14, 2012
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "pcap",
"version" : "0.4.1",
"version" : "1.0.0",
"description" : "raw packet capture, decoding, and analysis",
"author": "Matt Ranney <[email protected]>",
"maintainers": [
Expand Down
3 changes: 1 addition & 2 deletions pcap_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ PcapSession::Dispatch(const Arguments& args)
session->buffer_length = buffer_obj->length();
#endif

int packet_count, total_packets = 0;
int packet_count;
do {
packet_count = pcap_dispatch(session->pcap_handle, 1, PacketReady, (u_char *)session);
total_packets += packet_count;
} while (packet_count > 0);

return scope.Close(Integer::NewFromUnsigned(packet_count));
Expand Down

0 comments on commit c26f068

Please sign in to comment.