rcp: Rename plugins to org.eclipse.tracecompass
[deliverable/tracecompass.git] / org.eclipse.tracecompass.pcap.core / src / org / eclipse / linuxtools / internal / pcap / core / trace / PcapFileValues.java
CommitLineData
5255c030
VP
1/*******************************************************************************
2 * Copyright (c) 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
12
93d1d135 13package org.eclipse.linuxtools.internal.pcap.core.trace;
5255c030
VP
14
15/**
16 * Interface that lists constants related to a Pcap File.
17 *
18 * See http://wiki.wireshark.org/Development/LibpcapFileFormat.
19 *
20 * @author Vincent Perot
21 */
22public interface PcapFileValues {
23
24 /** Number used to determine the endianness and precision of the file */
25 int MAGIC_BIG_ENDIAN_MICRO = 0xa1b2c3d4;
26
27 /** Number used to determine the endianness and precision of the file */
28 int MAGIC_LITTLE_ENDIAN_MICRO = 0xd4c3b2a1;
29
30 /** Number used to determine the endianness and precision of the file */
31 int MAGIC_BIG_ENDIAN_NANO = 0xa1b23c4d;
32
33 /** Number used to determine the endianness and precision of the file */
34 int MAGIC_LITTLE_ENDIAN_NANO = 0x4d3cb2a1;
35
36 /** Size in bytes of a Pcap file global header */
37 int GLOBAL_HEADER_SIZE = 24;
38
39 /** Size in bytes of a Pcap packet header */
40 int PACKET_HEADER_SIZE = 16;
41
42 /** Position in bytes in the packet header of the packet's length */
43 int INCLUDED_LENGTH_POSITION = 8;
44
45}
This page took 0.02874 seconds and 5 git commands to generate.