diff options
author | 2024-11-28 13:54:10 -0800 | |
---|---|---|
committer | 2024-12-06 22:18:42 +0000 | |
commit | 72bd2e585d75b88911956d721753682dfa24001a (patch) | |
tree | bed016a036da7966897c19316a465b30376b38ad /src/plugins/ppp/plugin.c | |
parent | 41ae1e20e6cc768e5562ad89d1f35c63d471b9b9 (diff) |
misc: move ppp to a plugin
Type: refactor
Move PPP folder under vnet to the plugin folder, and modify some of path
of the #inlude<header> to the new path.
Add a plugin.c file to register a plugin.
Resolve ip4_input and ip6_input's dependency on PPP functions by moving
those calls to PPP's initialization.
Resolve osi's inter-plugin dependency on PPP by having it retrieve the
function pointer
Add ppp to the list of valid spelling words
JIRA: VPP-2052
Change-Id: I1a26ef0663a91857d13f7d87a3bb14bc38893194
Signed-off-by: Joel Ahn <joeahn@cisco.com>
Diffstat (limited to 'src/plugins/ppp/plugin.c')
-rw-r--r-- | src/plugins/ppp/plugin.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/ppp/plugin.c b/src/plugins/ppp/plugin.c new file mode 100644 index 00000000000..fac25b3e5c7 --- /dev/null +++ b/src/plugins/ppp/plugin.c @@ -0,0 +1,26 @@ +/* + * plugin.c: ppp + * + * Copyright (c) 2024 Cisco and/or its affiliates. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <vlib/vlib.h> +#include <vnet/plugin/plugin.h> +#include <vpp/app/version.h> + +// register a plugin +VLIB_PLUGIN_REGISTER () = { + .version = VPP_BUILD_VER, + .description = "Point-to-Point Protocol (PPP) plugin", +}; |