Added capwap timers to conn.
FossilOrigin-Name: 3e1d6a084140d92403f333f8dc7d55779fdcca4a1ff3c23acdce85a87e60c2e8
This commit is contained in:
parent
018ecb0928
commit
c47f46d947
@ -20,10 +20,21 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include "cw_log.h"
|
||||||
#include "conn.h"
|
#include "conn.h"
|
||||||
#include "sock.h"
|
#include "sock.h"
|
||||||
|
#include "capwap.h"
|
||||||
|
|
||||||
|
|
||||||
|
void conn_init(struct conn * conn)
|
||||||
|
{
|
||||||
|
conn->retransmit_interval=CAPWAP_RETRANSMIT_INTERVAL;
|
||||||
|
conn->max_reatransmit=CAPWAP_MAX_RETRANSMIT;
|
||||||
|
conn->wait_dtls=CAPWAP_WAIT_DTLS;
|
||||||
|
conn->wait_join=CAPWAP_WAIT_JOIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "cw_log.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function
|
* function
|
||||||
@ -37,6 +48,8 @@ struct conn * conn_create(int sock, struct sockaddr * addr, int qsize)
|
|||||||
if (!conn)
|
if (!conn)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
conn_init(conn);
|
||||||
|
|
||||||
memset(conn,0,sizeof(struct conn));
|
memset(conn,0,sizeof(struct conn));
|
||||||
|
|
||||||
conn->sock=sock;
|
conn->sock=sock;
|
||||||
|
@ -98,6 +98,13 @@ struct conn{
|
|||||||
uint8_t dtls_cookie[8];
|
uint8_t dtls_cookie[8];
|
||||||
int dtls_verify_peer;
|
int dtls_verify_peer;
|
||||||
|
|
||||||
|
/* capwap timers */
|
||||||
|
int retransmit_interval;
|
||||||
|
int max_reatransmit;
|
||||||
|
int wait_dtls;
|
||||||
|
int wait_join;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* used to link the conn obj with other objects */
|
/* used to link the conn obj with other objects */
|
||||||
void * data;
|
void * data;
|
||||||
|
Loading…
Reference in New Issue
Block a user