modified mod_cisco to compile as dll
FossilOrigin-Name: 80dd614719e8d1eade48978ae743c603fed96ec0779e953719ff66bd89b0f5c3
This commit is contained in:
parent
e3b569f13a
commit
33cc9e3af9
@ -1,13 +1,23 @@
|
||||
include ../../Macros.mak
|
||||
include ../../Config.mak
|
||||
include ../../Config.local.mak
|
||||
|
||||
OBJS=\
|
||||
mod_cipwap_ac.o \
|
||||
mod_cipwap_wtp.o \
|
||||
cipwap_actions_ac.o \
|
||||
cipwap_actions_wtp.o \
|
||||
cipwap_items.o \
|
||||
|
||||
NAME := cipwap
|
||||
|
||||
LIBDIR := ../../../lib
|
||||
LIBARCHDIR := $(LIBDIR)/$(ARCH)
|
||||
OBJDIR := ../../../obj/mod_$(NAME)/$(ARCH)
|
||||
SNAME := $(LIBARCHDIR)/libmod_$(NAME).a
|
||||
DNAME := $(LIBARCHDIR)/mod_$(NAME).so
|
||||
MODNAME := $(LIBDIR)/mod_$(NAME).so
|
||||
SLIBS := -lcw
|
||||
|
||||
NAME=libcipwap.a
|
||||
|
||||
include ../Mod.mak
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
include ../../Macros.mak
|
||||
include ../../Config.mak
|
||||
include ../../Config.local.mak
|
||||
|
||||
|
||||
OBJS=\
|
||||
mod_cisco_ac.o \
|
||||
mod_cisco_wtp.o \
|
||||
cisco_actions_ac.o \
|
||||
cisco_actions_wtp.o \
|
||||
cisco_out_ap_timesync.o \
|
||||
@ -31,8 +34,14 @@ OBJS=\
|
||||
# cisco_out_radio_administrative_state.o \
|
||||
|
||||
|
||||
LIBDIR := ../../../lib
|
||||
LIBARCHDIR := $(LIBDIR)/$(ARCH)
|
||||
OBJDIR := ../../../obj/mod_cisco/$(ARCH)
|
||||
SNAME := $(LIBARCHDIR)/libmod_cisco.a
|
||||
DNAME := $(LIBARCHDIR)/mod_cisco.so
|
||||
MODNAME := $(LIBDIR)/mod_cisco.so
|
||||
SLIBS := -lcw -lmod_cipwap -lmod_capwap
|
||||
|
||||
NAME=libcisco.a
|
||||
|
||||
include ../Mod.mak
|
||||
|
||||
|
@ -6,12 +6,13 @@
|
||||
|
||||
#include "cisco.h"
|
||||
|
||||
extern mbag_t cisco_config_wtp;
|
||||
//#extern mbag_t cisco_config_wtp;
|
||||
|
||||
int cisco_out_wtp_descriptor(struct conn *conn, struct cw_action_out *a, uint8_t * dst)
|
||||
{
|
||||
|
||||
mbag_t mbag = cisco_config_wtp;
|
||||
// mbag_t mbag = cisco_config_wtp;
|
||||
mbag_t mbag = NULL;
|
||||
|
||||
// XXX Dummy WTP Descriptor Header
|
||||
uint8_t *d = dst+4;
|
||||
|
@ -27,7 +27,7 @@ static int register_actions(struct cw_actiondef *actions, int mode)
|
||||
case CW_MOD_MODE_CAPWAP:
|
||||
{
|
||||
|
||||
struct cw_Mod *cmod = modload_ac("cipwap");
|
||||
struct cw_Mod *cmod = NULL; //modload_ac("cipwap");
|
||||
if (!cmod) {
|
||||
cw_log(LOG_ERR,
|
||||
"Can't initialize mod_cisco, failed to load base mod mod_cipwap");
|
||||
@ -40,7 +40,7 @@ static int register_actions(struct cw_actiondef *actions, int mode)
|
||||
}
|
||||
case MOD_MODE_BINDINGS:
|
||||
{
|
||||
struct cw_Mod *cmod = modload_ac("capwap80211");
|
||||
struct cw_Mod *cmod = NULL; //modload_ac("capwap80211");
|
||||
if (!cmod) {
|
||||
cw_log(LOG_ERR,
|
||||
"Can't initialize mod_cisco, failed to load base mod mod_capwap80211");
|
||||
@ -180,3 +180,7 @@ struct cw_Mod *mod_cisco_ac()
|
||||
};
|
||||
|
||||
|
||||
struct cw_Mod *mod_cisco()
|
||||
{
|
||||
return &capwap_ac;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user