GitXplorerGitXplorer
L

gopcap

public
35 stars
11 forks
4 issues

Commits

List of commits on branch master.
Unverified
c6f48e28102a8eff9e603f538236688ee6f4f454

Merge pull request #6 from sumkincpp/master

LLukasa committed 10 years ago
Unverified
c8ae6457e0297314dd2c9a0931a8f6d3067e36c4

Fix for eth padding and IPv6 test

ssumkincpp committed 10 years ago
Unverified
23ed1d4f4e2b40aba0a4eb61b794cc70e0f1ec4f

Merge pull request #5 from thomaswhiteway/master

LLukasa committed 11 years ago
Unverified
a66a791a53f67a4f65918b8553024a4d1fe643d5

Decode transport layer for IPv6 message

tthomaswhiteway committed 11 years ago
Unverified
9b96b2b3b641f318f8496ef3d7fccecbd3245383

Enable IPv6 Support

tthomaswhiteway committed 11 years ago
Unverified
0e12a523949dbaa2a51db499364d7c0ae37415fe

Enable UDP Support

tthomaswhiteway committed 11 years ago

README

The README file for this repository.

gopcap

gopcap is a pure Go implementation of the pcap file format. Pcap is the standard open-source packet capture format, and is defined by the libpcap C library.

Example

The gopcap API is incredibly simple:

pcapfile, _ := os.Open("file.cap")
parsed, err := gopcap.Parse(pcapfile)

For further examples, see the API documentation.

Features

  • Fully synchronous API that is easy to make asynchronous.
  • Efficient with memory use.
  • No external dependencies.

Contributing

gopcap welcomes contributions, both bug fixes and new features (though the opportunity for new features is obviously fairly limited!). Any feature request should strongly consider the implications for the API. API clarity is valued above new features, so any feature that complicates the API must add significant value to the library to be accepted.

If you'd like to contribute, do the following:

  1. Check that your idea hasn't been proposed already, by checking both open and closed issues on GitHub.
  2. Fork the repository from GitHub and make your changes.
  3. Where possible, write a test that reproduces the bug and check that it passes after your changes have been made.
  4. Send a Pull Request. Don't forget to add yourself to the AUTHORS file.

## License

This PCAP parsing library is available under the MIT license. You are free to use this library, copy it, modify it, publish it, sell it, whatever. For more information see the enclosed LICENSE file.