RIPE-NCC/hadoop-pcap — pull request #5 by ussjoin (2012-12-30 07:46:14+00:00)
Title: Reverse endian

Two commits are here, each with its own purpose; I needed both to make the changes, so I have included both in this pull request, but they are topic-separated.

* I have added code to detect (via the header) and handle (in the few cases where necessary-- in the header and in the pcap per-packet header) reversed-byte-order pcap files; i.e., big-endian files. Some large data sources (such as the Dartmouth CRAWDAD dataset) are big-endian and I needed it, and I think the code will be useful to others. I added a test (a duplicate of the standard test) and an example pcap file to test upon; the pcap comes from http://crawdad.cs.dartmouth.edu/meta.php?name=dartmouth/campus#N1024D .

* As a separate commit, I updated the pom.xml to use more-current versions of the dependencies not in the Maven repository, and updated one file with the new name of the Constants.java file (serdeConstants.java).

Please feel free to ask questions; I am happy to change to conform to code style if necessary. Thank you!