aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-08-30 16:21:10 -0700
committerGuy Harris <guy@alum.mit.edu>2014-08-30 23:21:37 +0000
commitf415e1c34887ff5ca50f0af499a7f52cfc6c7d56 (patch)
tree51bc355731ee61f3585cc3bcbc44c93896cc4e55
parent0d7c4fd5ee2097101cbec5275519b78bdb40380e (diff)
Remove some unnecessary definitions.
text2pcap.c uses pcapio.c to write pcap files, so it doesn't itself need to know what those files look like. Change-Id: I013d0c094c27515af91f352b565bc9a8bad3e842 Reviewed-on: https://code.wireshark.org/review/3927 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--text2pcap.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/text2pcap.c b/text2pcap.c
index f15001bd99..d0b5b27183 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -439,28 +439,8 @@ static char tempbuf[64];
/*----------------------------------------------------------------------
* Stuff for writing a PCap file
*/
-#define PCAP_MAGIC 0xa1b2c3d4
#define PCAP_SNAPLEN 0xffff
-/* "libpcap" file header (minus magic number). */
-struct pcap_hdr {
- guint32 magic; /* magic */
- guint16 version_major; /* major version number */
- guint16 version_minor; /* minor version number */
- guint32 thiszone; /* GMT to local correction */
- guint32 sigfigs; /* accuracy of timestamps */
- guint32 snaplen; /* max length of captured packets, in octets */
- guint32 network; /* data link type */
-};
-
-/* "libpcap" record header. */
-struct pcaprec_hdr {
- guint32 ts_sec; /* timestamp seconds */
- guint32 ts_usec; /* timestamp microseconds */
- guint32 incl_len; /* number of octets of packet saved in file */
- guint32 orig_len; /* actual length of packet */
-};
-
/* Link-layer type; see http://www.tcpdump.org/linktypes.html for details */
static guint32 pcap_link_type = 1; /* Default is LINKTYPE_ETHERNET */