aboutsip / pkts

Pure java based pcap library capable of reading and writing to/from pcaps.
Other
198 stars 92 forks source link

Add getter for the `Pcap` global header #117

Closed cbarrete closed 4 years ago

cbarrete commented 4 years ago

I hope that this fits with the design of the library.

Accessing the global header while processing a stream is required to know whether the captures use microsecond or nanosecond precision. I can also imagine that other use cases might require access to other fields such as the data link type.