Moved to better location

FossilOrigin-Name: 56c4d8d9f4617e49435f17ca7886e3b84e3a1151d995ecb243d3d2c61c38b205
This commit is contained in:
7u83@mail.ru
2016-02-26 22:28:59 +00:00
parent 26a8ea439c
commit 756457f2f2
11 changed files with 0 additions and 0 deletions

24
src/mod/cipwap/Makefile Normal file
View 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)

View File

@ -0,0 +1,6 @@
#ifndef __MOD_CIPWAP_H
#define __MOD_CIPWAP_H
struct mod_ac * mod_cipwap_ac();
#endif

View 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;
};