2 * Copyright (c) 2020 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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <vlib/vlib.h>
22 typedef struct lcp_main_s
24 u16 msg_id_base; /* API message ID base */
25 u8 default_namespace[LCP_NS_LEN]; /* default namespace if set */
28 /* Set when Unit testing */
32 extern lcp_main_t lcp_main;
35 * Get/Set the default namespace for LCP host taps.
37 int lcp_set_default_ns (u8 *ns);
38 u8 *lcp_get_default_ns (void); /* Returns NULL or shared string */
39 int lcp_get_default_ns_fd (void);
44 * fd.io coding-style-patch-verification: ON
47 * eval: (c-set-style "gnu")