blob: f96219f753be00da34b1bee50925e56d2b4f2d9b [file] [log] [blame]
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -07001/*
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
Dave Wallace2a865272018-02-07 21:00:42 -050016#ifndef included_ldp_h
17#define included_ldp_h
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070018
Dave Wallacee695cb42017-11-02 22:04:42 -040019#if (CLIB_DEBUG > 0)
Dave Wallace2a865272018-02-07 21:00:42 -050020/* Set LDP_DEBUG 2 for connection debug, 3 for read/write debug output */
21#define LDP_DEBUG_INIT 1
Dave Wallacee695cb42017-11-02 22:04:42 -040022#else
Dave Wallace2a865272018-02-07 21:00:42 -050023#define LDP_DEBUG_INIT 0
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070024#endif
25
Dave Wallace227867f2017-11-13 21:21:53 -050026#include <vppinfra/error.h>
27#include <vppinfra/types.h>
Dave Wallace2a865272018-02-07 21:00:42 -050028#include <vcl/ldp_glibc_socket.h>
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070029
Dave Wallace2a865272018-02-07 21:00:42 -050030#define LDP_ENV_DEBUG "LDP_DEBUG"
31#define LDP_ENV_APP_NAME "LDP_APP_NAME"
32#define LDP_ENV_SID_BIT "LDP_SID_BIT"
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070033
Dave Wallace2a865272018-02-07 21:00:42 -050034#define LDP_SID_BIT_MIN 9
35#define LDP_SID_BIT_MAX 30
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070036
Dave Wallace2a865272018-02-07 21:00:42 -050037#define LDP_APP_NAME_MAX 256
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070038
Dave Wallace2a865272018-02-07 21:00:42 -050039#endif /* included_ldp_h */
Keith Burns (alagalah)b327c2b2017-10-09 08:52:59 -070040
41/*
42 * fd.io coding-style-patch-verification: ON
43 *
44 * Local Variables:
45 * eval: (c-set-style "gnu")
46 * End:
47 */