Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 1 | /* |
Florin Coras | 5e06257 | 2019-03-14 19:07:51 -0700 | [diff] [blame] | 2 | * Copyright (c) 2017-2019 Cisco and/or its affiliates. |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 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 | |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 16 | #ifndef included_ldp_h |
| 17 | #define included_ldp_h |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 18 | |
Dave Wallace | e695cb4 | 2017-11-02 22:04:42 -0400 | [diff] [blame] | 19 | #if (CLIB_DEBUG > 0) |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 20 | /* Set LDP_DEBUG 2 for connection debug, 3 for read/write debug output */ |
| 21 | #define LDP_DEBUG_INIT 1 |
Dave Wallace | e695cb4 | 2017-11-02 22:04:42 -0400 | [diff] [blame] | 22 | #else |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 23 | #define LDP_DEBUG_INIT 0 |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 24 | #endif |
| 25 | |
Florin Coras | 3684794 | 2023-02-02 12:56:16 -0800 | [diff] [blame] | 26 | #include <vcl/ldp_glibc_socket.h> |
Dave Wallace | 227867f | 2017-11-13 21:21:53 -0500 | [diff] [blame] | 27 | #include <vppinfra/error.h> |
| 28 | #include <vppinfra/types.h> |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 29 | |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 30 | #define LDP_ENV_DEBUG "LDP_DEBUG" |
| 31 | #define LDP_ENV_APP_NAME "LDP_APP_NAME" |
| 32 | #define LDP_ENV_SID_BIT "LDP_SID_BIT" |
Yu Ping | 7b74b07 | 2019-05-08 00:40:24 +0800 | [diff] [blame] | 33 | #define LDP_ENV_TLS_CERT "LDP_TLS_CERT_FILE" |
| 34 | #define LDP_ENV_TLS_KEY "LDP_TLS_KEY_FILE" |
| 35 | #define LDP_ENV_TLS_TRANS "LDP_TRANSPARENT_TLS" |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 36 | |
Florin Coras | 173bae3 | 2018-11-16 18:56:28 -0800 | [diff] [blame] | 37 | #define LDP_SID_BIT_MIN 5 |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 38 | #define LDP_SID_BIT_MAX 30 |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 39 | |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 40 | #define LDP_APP_NAME_MAX 256 |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 41 | |
Dave Wallace | 2a86527 | 2018-02-07 21:00:42 -0500 | [diff] [blame] | 42 | #endif /* included_ldp_h */ |
Keith Burns (alagalah) | b327c2b | 2017-10-09 08:52:59 -0700 | [diff] [blame] | 43 | |
| 44 | /* |
| 45 | * fd.io coding-style-patch-verification: ON |
| 46 | * |
| 47 | * Local Variables: |
| 48 | * eval: (c-set-style "gnu") |
| 49 | * End: |
| 50 | */ |