Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 Cisco and/or its affiliates. |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
| 16 | #ifndef included_vcom_h |
| 17 | #define included_vcom_h |
| 18 | |
Dave Wallace | e695cb4 | 2017-11-02 22:04:42 -0400 | [diff] [blame] | 19 | #if (CLIB_DEBUG > 0) |
| 20 | /* Set VCOM_DEBUG 2 for connection debug, 3 for read/write debug output */ |
Dave Wallace | 048b1d6 | 2018-01-03 22:24:41 -0500 | [diff] [blame] | 21 | #define VCOM_DEBUG_INIT 1 |
Dave Wallace | e695cb4 | 2017-11-02 22:04:42 -0400 | [diff] [blame] | 22 | #else |
Dave Wallace | 048b1d6 | 2018-01-03 22:24:41 -0500 | [diff] [blame] | 23 | #define VCOM_DEBUG_INIT 0 |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 24 | #endif |
| 25 | |
Dave Wallace | 227867f | 2017-11-13 21:21:53 -0500 | [diff] [blame] | 26 | #include <vppinfra/error.h> |
| 27 | #include <vppinfra/types.h> |
Dave Wallace | 5c7cf1c | 2017-10-24 04:12:18 -0400 | [diff] [blame] | 28 | #include <vcl/vcom_glibc_socket.h> |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 29 | |
Dave Wallace | 048b1d6 | 2018-01-03 22:24:41 -0500 | [diff] [blame] | 30 | #define VCOM_ENV_DEBUG "VCOM_DEBUG" |
| 31 | #define VCOM_ENV_APP_NAME "VCOM_APP_NAME" |
| 32 | #define VCOM_ENV_SID_BIT "VCOM_SID_BIT" |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 33 | |
Dave Wallace | 048b1d6 | 2018-01-03 22:24:41 -0500 | [diff] [blame] | 34 | #define VCOM_SID_BIT_MIN 9 |
| 35 | #define VCOM_SID_BIT_MAX 30 |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 36 | |
Dave Wallace | 048b1d6 | 2018-01-03 22:24:41 -0500 | [diff] [blame] | 37 | #define VCOM_APP_NAME_MAX 256 |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 38 | |
| 39 | #endif /* included_vcom_h */ |
| 40 | |
| 41 | /* |
| 42 | * fd.io coding-style-patch-verification: ON |
| 43 | * |
| 44 | * Local Variables: |
| 45 | * eval: (c-set-style "gnu") |
| 46 | * End: |
| 47 | */ |