Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
241ce107
Commit
241ce107
authored
Oct 07, 2020
by
Michal Wasiak
Committed by
Adam Wujek
Oct 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp/bridge_mib: add Makefiles
Signed-off-by:
Michal Wasiak
<
michal.wasiak@gmail.com
>
parent
40751c27
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
0 deletions
+47
-0
Makefile
userspace/snmpd/Makefile
+5
-0
Makefile
userspace/snmpd/bridge_mib/Makefile
+17
-0
init_bridge_mib.c
userspace/snmpd/bridge_mib/init_bridge_mib.c
+15
-0
init_bridge_mib.h
userspace/snmpd/bridge_mib/init_bridge_mib.h
+6
-0
init.c
userspace/snmpd/init.c
+4
-0
No files found.
userspace/snmpd/Makefile
View file @
241ce107
-include
../Makefile.specific
# include Makefile for bridge mib
BRIDGE_MIB_DIR
:=
bridge_mib
include
${BRIDGE_MIB_DIR}/Makefile
# if BRVER not defined use a wildcard
BRVER
?=
2
*
SNMP_BUILD
:=
$
(
wildcard
$(WRS_OUTPUT_DIR)
/build/buildroot-
$(BRVER)
)
...
...
@@ -62,6 +66,7 @@ SOURCES = \
wrsPtpDataTable.c
\
wrsPortStatusTable.c
\
wrsPtpInstanceTable.c
\
$(BRIDGE_MIB_SRCS)
\
init.c
\
$(PPSI_SOURCES)
...
...
userspace/snmpd/bridge_mib/Makefile
0 → 100644
View file @
241ce107
-include
../Makefile.specific
BRIDGE_DIRS
=
\
BRIDGE_INCLUDE_DIRS
:=
$
(
addsuffix /Makefile,
$(BRIDGE_DIRS)
)
BRIDGE_INCLUDE_DIRS
:=
$
(
addprefix
$(BRIDGE_MIB_DIR)
/,
$(BRIDGE_INCLUDE_DIRS)
)
include
$(BRIDGE_INCLUDE_DIRS)
#BRIDGE_I_DIRS=$(addprefix -I$(BRIDGE_MIB_DIR)/,$(BRIDGE_DIRS))
CFLAGS
+=
-I
$(BRIDGE_MIB_DIR)
BRIDGE_MIB_SRCS
+=
\
init_bridge_mib.c
BRIDGE_MIB_SRCS
:=
$
(
addprefix
$(BRIDGE_MIB_DIR)
/,
$(BRIDGE_MIB_SRCS)
)
userspace/snmpd/bridge_mib/init_bridge_mib.c
0 → 100644
View file @
241ce107
/*
* A global (library-wide) init function to register several things
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
/* The sub-init functions */
#include "wrsSnmp.h"
#include "snmp_shmem.h"
void
init_bridge_mib
(
void
)
{
}
userspace/snmpd/bridge_mib/init_bridge_mib.h
0 → 100644
View file @
241ce107
#ifndef INIT_BRIDGE_MIB_H
#define INIT_BRIDGE_MIB_H
void
init_bridge_mib
(
void
);
#endif
/* INIT_BRIDGE_MIB_H */
userspace/snmpd/init.c
View file @
241ce107
...
...
@@ -28,6 +28,8 @@
#include "wrsPstatsHCTable.h"
#include "wrsPtpInstanceTable.h"
#include "init_bridge_mib.h"
#define DOTCONFIG_FILE "/wr/etc/dot-config"
FILE
*
wrs_logf
;
/* for the local-hack messages */
...
...
@@ -66,4 +68,6 @@ void init_wrsSnmp(void)
wrsTimingStatus_data_fill
();
wrsNetworkingStatus_data_fill
();
/* BRIDGE-MIB and Q-BRIDGE-MIB */
init_bridge_mib
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment