Work on DTLS
FossilOrigin-Name: 5cc472aaf15b6e5dfe9beb3241c11f51af85dc3a29d94fee47992cbaf794fde2
This commit is contained in:
@ -14,12 +14,6 @@ LDFLAGS+=-L$(LIBARCHDIR)
|
||||
|
||||
CFLAGS+=-DSYS_ARCH=\"$(ARCH)\"
|
||||
|
||||
#LIBS+=-lcapwap
|
||||
#LIBS+=-lcapwap80211
|
||||
#LIBS+=-lcipwap
|
||||
#LIBS+=-lcisco
|
||||
#LIBS+=-lfortinet
|
||||
#LIBS+=-lzyxel
|
||||
LIBS+=-lcw
|
||||
LIBS+=-lrt
|
||||
LIBS+=-lpthread
|
||||
@ -63,6 +57,7 @@ AC_OBJS = \
|
||||
socklist.o \
|
||||
db.o \
|
||||
ac_global.o \
|
||||
discovery_cache.o\
|
||||
${AC_MODULES}
|
||||
|
||||
|
||||
|
@ -533,8 +533,6 @@ void process_cw_ctrl_packet (int index, struct sockaddr *addr, uint8_t * buffer,
|
||||
wtplist_lock();
|
||||
struct wtpman *wtpman = wtplist_get (addr);
|
||||
|
||||
printf("Seaching for packet %s\n",sock_addr2str(addr,sock_buf));
|
||||
|
||||
|
||||
if (!wtpman) {
|
||||
|
||||
|
25
src/ac/discovery_cache.c
Normal file
25
src/ac/discovery_cache.c
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
#include "cw/mlist.h"
|
||||
#include "cw/mavl.h"
|
||||
|
||||
struct cw_DiscoveryCache{
|
||||
int len;
|
||||
|
||||
};
|
||||
|
||||
struct CacheElem{
|
||||
struct sockaddr_storage addr;
|
||||
const char *mod_capwap;
|
||||
const char *mod_bindings;
|
||||
|
||||
};
|
||||
|
||||
void discovery_cache_destroy(struct cw_DiscoveryCache * c)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
struct cw_DiscoveryCache * discovery_cache_init(int len){
|
||||
|
||||
return NULL;
|
||||
}
|
@ -24,7 +24,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#define MAX_WTPS 200
|
||||
/*#define MAX_WTPS 200*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@ -81,9 +81,11 @@ struct wtpman * wtplist_get(const struct sockaddr * addr)
|
||||
struct wtpman * wtplist_get_by_session_id(uint8_t *session_id)
|
||||
{
|
||||
struct conn search;
|
||||
struct conn * conn;
|
||||
|
||||
memcpy (search.session_id, session_id,16);
|
||||
|
||||
struct conn * conn = connlist_get_by_session_id(connlist,&search);
|
||||
conn = connlist_get_by_session_id(connlist,&search);
|
||||
return conn->data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user