/
IPv4Values.java
38 lines (31 loc) · 1.12 KB
/
IPv4Values.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
* Copyright (c) 2014, 2023 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Vincent Perot - Initial API and implementation
*******************************************************************************/
package org.eclipse.tracecompass.internal.pcap.core.protocol.ipv4;
/**
* Interface that lists constants related to Internet Protocol v4.
*
* See http://en.wikipedia.org/wiki/IPv4#Packet_structure.
*
* @author Vincent Perot
*/
public interface IPv4Values {
/** Version */
int VERSION = 4;
/** Size in bytes of an IP address */
int IP_ADDRESS_SIZE = 4;
/** Size in 32-bit blocks of a default IPv4 packet header */
int DEFAULT_HEADER_LENGTH = 5;
/** Size in bytes of a block of data. Used to convert data block to bytes */
int BLOCK_SIZE = 4;
}