1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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
10 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.pcap
.core
.trace
;
16 * Interface that lists constants related to a Pcap File.
18 * See http://wiki.wireshark.org/Development/LibpcapFileFormat.
20 * @author Vincent Perot
22 public interface PcapFileValues
{
24 /** Number used to determine the endianness and precision of the file */
25 int MAGIC_BIG_ENDIAN_MICRO
= 0xa1b2c3d4;
27 /** Number used to determine the endianness and precision of the file */
28 int MAGIC_LITTLE_ENDIAN_MICRO
= 0xd4c3b2a1;
30 /** Number used to determine the endianness and precision of the file */
31 int MAGIC_BIG_ENDIAN_NANO
= 0xa1b23c4d;
33 /** Number used to determine the endianness and precision of the file */
34 int MAGIC_LITTLE_ENDIAN_NANO
= 0x4d3cb2a1;
36 /** Size in bytes of a Pcap file global header */
37 int GLOBAL_HEADER_SIZE
= 24;
39 /** Size in bytes of a Pcap packet header */
40 int PACKET_HEADER_SIZE
= 16;
42 /** Position in bytes in the packet header of the packet's length */
43 int INCLUDED_LENGTH_POSITION
= 8;