Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Network Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
network
Network Manager
Commits
fa0d38de
Commit
fa0d38de
authored
4 months ago
by
Amin Ben Romdhane
Browse files
Options
Downloads
Patches
Plain Diff
Define a config flag for each Object exposed by libnetmngr
parent
7c225a4b
No related branches found
No related tags found
1 merge request
!13
Define a config flag for each Object exposed by libnetmngr
Pipeline
#189740
passed
4 months ago
Stage: static_code_analysis
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Makefile
+35
-12
35 additions, 12 deletions
src/Makefile
src/net_plugin.c
+39
-1
39 additions, 1 deletion
src/net_plugin.c
with
74 additions
and
13 deletions
src/Makefile
+
35
−
12
View file @
fa0d38de
LIBNETMNGR
:=
libnetmngr.so
LIBIFACESTACK
:=
libinterface_stack.so
LIBNETMNGROBJS
:=
net_plugin.o
\
gre.o
\
ip.o
\
routing.o
\
ppp.o
\
routeradvertisement.o
\
ipv6rd.o
\
common.o
LIBNETMNGR
=
libnetmngr.so
LIBIFACESTACK
=
libinterface_stack.so
LIBNETMNGROBJS
=
net_plugin.o common.o
ifeq
($(NETMNGR_GRE_OBJ),y)
LIBNETMNGROBJS
+=
gre.o
PROG_CFLAGS
+=
-DNETMNGR_GRE_OBJ
endif
ifeq
($(NETMNGR_IP_OBJ),y)
LIBNETMNGROBJS
+=
ip.o
PROG_CFLAGS
+=
-DNETMNGR_IP_OBJ
endif
ifeq
($(NETMNGR_ROUTING_OBJ),y)
LIBNETMNGROBJS
+=
routing.o
PROG_CFLAGS
+=
-DNETMNGR_ROUTING_OBJ
endif
ifeq
($(NETMNGR_PPP_OBJ),y)
LIBNETMNGROBJS
+=
ppp.o
PROG_CFLAGS
+=
-DNETMNGR_PPP_OBJ
endif
ifeq
($(NETMNGR_ROUTER_ADVERTISEMENT_OBJ),y)
LIBNETMNGROBJS
+=
routeradvertisement.o
PROG_CFLAGS
+=
-DNETMNGR_ROUTER_ADVERTISEMENT_OBJ
endif
ifeq
($(NETMNGR_IPV6RD_OBJ),y)
LIBNETMNGROBJS
+=
ipv6rd.o
PROG_CFLAGS
+=
-DNETMNGR_IPV6RD_OBJ
endif
LIBIFACESTACKOBJS
:=
interfacestack.o
LIB_CFLAGS
=
$(
CFLAGS
)
-Wall
-Werror
-fstrict-aliasing
-g
...
...
This diff is collapsed.
Click to expand it.
src/net_plugin.c
+
39
−
1
View file @
fa0d38de
/*
* Copyright (C) 2024 iopsys Software Solutions AB
* Copyright (C) 2024
-2025
iopsys Software Solutions AB
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
...
...
@@ -8,20 +8,58 @@
* Author: Amin Ben Romdhane <amin.benromdhane@iopsys.eu>
*/
#include
<libbbfdm-api/dmapi.h>
#ifdef NETMNGR_IP_OBJ
#include
"ip.h"
#endif
#ifdef NETMNGR_GRE_OBJ
#include
"gre.h"
#endif
#ifdef NETMNGR_PPP_OBJ
#include
"ppp.h"
#endif
#ifdef NETMNGR_ROUTING_OBJ
#include
"routing.h"
#endif
#ifdef NETMNGR_ROUTER_ADVERTISEMENT_OBJ
#include
"routeradvertisement.h"
#endif
#ifdef NETMNGR_IPV6RD_OBJ
#include
"ipv6rd.h"
#endif
DM_MAP_OBJ
tDynamicObj
[]
=
{
/* parentobj, nextobject, parameter */
#ifdef NETMNGR_IP_OBJ
{
"Device."
,
tDeviceIPObj
,
NULL
},
#endif
#ifdef NETMNGR_GRE_OBJ
{
"Device."
,
tDeviceGREObj
,
NULL
},
#endif
#ifdef NETMNGR_PPP_OBJ
{
"Device."
,
tDevicePPPObj
,
NULL
},
#endif
#ifdef NETMNGR_ROUTING_OBJ
{
"Device."
,
tDeviceRoutingObj
,
NULL
},
#endif
#ifdef NETMNGR_ROUTER_ADVERTISEMENT_OBJ
{
"Device."
,
tDeviceRouterAdvertisementObj
,
NULL
},
#endif
#ifdef NETMNGR_IPV6RD_OBJ
{
"Device."
,
tDeviceIPv6rdObj
,
NULL
},
#endif
{
0
}
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment