Fix Sonar (soon Checkstyle) constant name
[netvirt.git] / vpnservice / ipv6service / impl / src / main / java / org / opendaylight / netvirt / ipv6service / utils / Ipv6Constants.java
1 /*
2  * Copyright (c) 2016 Red Hat, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.netvirt.ipv6service.utils;
10
11 public class Ipv6Constants {
12     public static final int IP_V6_ETHTYPE = 34525;
13     public static final int ICMP_V6 = 1;
14
15     public static final int ETHTYPE_START = 96;
16     public static final int ONE_BYTE  = 8;
17     public static final int TWO_BYTES = 16;
18     public static final int IP_V6_HDR_START = 112;
19     public static final int IP_V6_NEXT_HDR = 48;
20     public static final int ICMPV6_HDR_START = 432;
21
22     public static final int ICMPV6_RA_LENGTH_WO_OPTIONS = 16;
23     public static final int ICMPV6_OPTION_SOURCE_LLA_LENGTH = 8;
24     public static final int ICMPV6_OPTION_PREFIX_LENGTH = 32;
25
26     public static final int IPV6_DEFAULT_HOP_LIMIT = 64;
27     public static final int IPV6_ROUTER_LIFETIME = 4500;
28     public static final int IPV6_RA_VALID_LIFETIME = 2592000;
29     public static final int IPV6_RA_PREFERRED_LIFETIME = 604800;
30
31     public static final int ICMP_V6_TYPE = 58;
32     public static final short ICMP_V6_RS_CODE = 133;
33     public static final short ICMP_V6_RA_CODE = 134;
34     public static final short ICMP_V6_NS_CODE = 135;
35     public static final short ICMP_V6_NA_CODE = 136;
36     public static final short ICMP_V6_MAX_HOP_LIMIT = 255;
37     public static final int ICMPV6_OFFSET = 54;
38
39     public static final String DHCPV6_OFF = "DHCPV6_OFF";
40     public static final String IPV6_SLAAC = "IPV6_SLAAC";
41     public static final String IPV6_DHCPV6_STATEFUL = "DHCPV6_STATEFUL";
42     public static final String IPV6_DHCPV6_STATELESS = "DHCPV6_STATELESS";
43     public static final String IPV6_AUTO_ADDRESS_SUBNETS = IPV6_SLAAC + IPV6_DHCPV6_STATELESS;
44
45     public static final String IP_VERSION_V4 = "IPv4";
46     public static final String IP_VERSION_V6 = "IPv6";
47     public static final String NETWORK_ROUTER_INTERFACE = "network:router_interface";
48 }