Moved to better location
FossilOrigin-Name: 56c4d8d9f4617e49435f17ca7886e3b84e3a1151d995ecb243d3d2c61c38b205
This commit is contained in:
24
src/mod/cipwap/Makefile
Normal file
24
src/mod/cipwap/Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
include ../../../Macros.mak
|
||||
include ../../../Config.mak
|
||||
|
||||
OBJS=\
|
||||
mod_cipwap_ac.o
|
||||
|
||||
OBJS:=$(patsubst %.o,$(ARCH)/%.o,$(OBJS))
|
||||
|
||||
|
||||
CFLAGS = -Wall -g -O0 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT -I ../../../
|
||||
|
||||
|
||||
SRCS = $(OBJS:.o=.c)
|
||||
|
||||
$(ARCH)/%.o:%.c
|
||||
@mkdir -p $(ARCH)
|
||||
@echo " CC "$<
|
||||
@$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
|
||||
all: $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -rf $(ARCH)
|
6
src/mod/cipwap/mod_cipwap.h
Normal file
6
src/mod/cipwap/mod_cipwap.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef __MOD_CIPWAP_H
|
||||
#define __MOD_CIPWAP_H
|
||||
|
||||
struct mod_ac * mod_cipwap_ac();
|
||||
|
||||
#endif
|
35
src/mod/cipwap/mod_cipwap_ac.c
Normal file
35
src/mod/cipwap/mod_cipwap_ac.c
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
#include "capwap/mod.h"
|
||||
#include "capwap/log.h"
|
||||
|
||||
#include "mod_cipwap.h"
|
||||
|
||||
|
||||
|
||||
int cipwap_init()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int detect(struct conn *conn,const uint8_t *rawmsg, int rawlen,struct sockaddr *from)
|
||||
{
|
||||
cw_log(LOG_INFO,"Detecting ...");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static struct mod_ac cipwap_ac = {
|
||||
.name ="cipwap",
|
||||
.init = cipwap_init,
|
||||
.detect = detect
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct mod_ac * mod_cipwap_ac(){
|
||||
return &cipwap_ac;
|
||||
};
|
||||
|
Reference in New Issue
Block a user