2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
9 package org.opendaylight.vpnservice.natservice.internal;
11 import java.math.BigInteger;
14 public class NatConstants {
15 public static final short INBOUND_NAPT_TABLE = 44;
16 public static final short OUTBOUND_NAPT_TABLE = 46;
17 public static final short NAPT_PFIB_TABLE = 47;
18 public static final short TERMINATING_SERVICE_TABLE = 36;
19 public static final short DEFAULT_NAPT_FLOW_PRIORITY = 10;
20 public static final String NAPT_FLOW_NAME = "SNAT";
21 public static BigInteger COOKIE_NAPT_BASE = new BigInteger("8000000", 16);
22 public static final String NAPT_FLOWID_PREFIX = "SNAT.";
23 public static final String FLOWID_SEPARATOR = ".";
24 public static final int DEFAULT_NAPT_IDLE_TIMEOUT = 300;
25 public static int EVENT_QUEUE_LENGTH = 1000000;
26 public static final short PDNAT_TABLE = 25;
27 public static final short DNAT_TABLE = 27;
28 public static final short SNAT_TABLE = 28;
29 public static final short PSNAT_TABLE = 26;
30 public static final short L3_FIB_TABLE = 21;
31 public static final String FLOWID_PREFIX = "L3.";
32 public static final int DEFAULT_DNAT_FLOW_PRIORITY = 10;
33 public static final BigInteger COOKIE_DNAT_TABLE = new BigInteger("8000004", 16);
34 public static final long INVALID_ID = -1;
35 public static final BigInteger COOKIE_OUTBOUND_NAPT_TABLE = new BigInteger("8000008", 16);
36 public static final short DEFAULT_SNAT_FLOW_PRIORITY = 10;
37 public static final short DEFAULT_PSNAT_FLOW_PRIORITY = 5;
38 public static final String SNAT_FLOW_NAME = "SNAT";
39 public static final String SNAT_FLOWID_PREFIX = "SNAT.";
40 public static final BigInteger COOKIE_SNAT_TABLE = new BigInteger("8000006", 16);
41 public static final String SNAT_IDPOOL_NAME = "snatGroupIdPool";
42 public static final long SNAT_ID_LOW_VALUE = 200000L;
43 public static final long SNAT_ID_HIGH_VALUE = 225000L;
44 public static final int DEFAULT_TS_FLOW_PRIORITY = 10;
45 public static final BigInteger COOKIE_TS_TABLE = new BigInteger("8000002", 16);
46 public static final short DEFAULT_PREFIX = 32;
49 public static final int ADD_FLOW = 0;
50 public static final int DEL_FLOW = 1;