Added Strict capwap option.

FossilOrigin-Name: 0262491e787e76a1c11b2ffde0c5fbb0c63a716221c9d9fdf3345481654a589b
This commit is contained in:
7u83@mail.ru 2014-08-17 11:59:13 +00:00
parent 5ab147e01e
commit a444856e32
1 changed files with 17 additions and 5 deletions

View File

@ -48,12 +48,18 @@ struct conn{
int last_seqnum_received; int last_seqnum_received;
int last_message_id_received; int last_message_id_received;
struct cwmsg * last_response; // struct cwmsg * last_response;
struct cwmsg swm; // struct cwmsg swm;
int last_response_seqnum; // int last_response_seqnum;
int last_response_rid; // 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; int mtu;
/* receive and send methods */ /* receive and send methods */
@ -95,10 +101,16 @@ struct conn{
/* used to link the conn obj with other objects */ /* used to link the conn obj with other objects */
void * data; 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(int sock, struct sockaddr * addr, int qsize);
struct conn * conn_create_noq(int sock, struct sockaddr * addr); struct conn * conn_create_noq(int sock, struct sockaddr * addr);