From a444856e322d456d90612b9c929381ba1ce4ce22 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 17 Aug 2014 11:59:13 +0000 Subject: [PATCH] Added Strict capwap option. FossilOrigin-Name: 0262491e787e76a1c11b2ffde0c5fbb0c63a716221c9d9fdf3345481654a589b --- src/capwap/conn.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/capwap/conn.h b/src/capwap/conn.h index 7b25ce03..243d0e1b 100644 --- a/src/capwap/conn.h +++ b/src/capwap/conn.h @@ -48,12 +48,18 @@ struct conn{ int last_seqnum_received; int last_message_id_received; - struct cwmsg * last_response; - struct cwmsg swm; - int last_response_seqnum; - int last_response_rid; +// struct cwmsg * last_response; +// struct cwmsg swm; +// int last_response_seqnum; +// int last_response_rid; + + + struct cwmsg req_msg; + struct cwmsg resp_msg; + uint8_t req_buffer[65536]; + uint8_t resp_buffer[65536]; + - uint8_t buffer[65536]; int mtu; /* receive and send methods */ @@ -95,10 +101,16 @@ struct conn{ /* used to link the conn obj with other objects */ void * data; + + int strict_capwap; }; +#define conn_is_strict_capwap(conn) (conn->strict_capwap) + + + struct conn * conn_create(int sock, struct sockaddr * addr, int qsize); struct conn * conn_create_noq(int sock, struct sockaddr * addr);