FossilOrigin-Name: 83efaf76991f8123c0f9fafa4953840cfd494ef9f4e2e2142a20a94c68a6ea59bsdmakefiles
parent
96b0e8e908
commit
fb6d890745
@ -0,0 +1,23 @@ |
||||
#include "cw.h" |
||||
#include "capwap.h" |
||||
|
||||
|
||||
|
||||
|
||||
uint8_t *cw_init_data_keep_alive_msg(uint8_t * buffer,uint8_t *rmac) |
||||
{ |
||||
/* zero the first 8 bytes */ |
||||
memset(buffer,0,8); |
||||
|
||||
/* put capwap header, unencrypted */ |
||||
#if CAPWAP_PACKET_PREAMBLE != 0 |
||||
cw_set_hdr_preamble(buffer, CAPWAP_PACKET_PREAMBLE); |
||||
#endif |
||||
|
||||
cw_set_hdr_rmac(buffer, rmac); |
||||
|
||||
cw_set_hdr_flags(buffer, CW_FLAG_HDR_K,1); |
||||
|
||||
return cw_get_hdr_payload_ptr(buffer); |
||||
} |
||||
|
@ -0,0 +1 @@ |
||||
../mod/capwap/capwap_actions.h |
@ -0,0 +1,7 @@ |
||||
#ifndef __CAPWAP_ACTIONS_H |
||||
#define __CAPWAP_ACTIONS_H |
||||
|
||||
int capwap_in_session_id(struct conn *conn, struct cw_action_in *a, uint8_t * data, |
||||
int len, struct sockaddr *from); |
||||
|
||||
#endif |
@ -0,0 +1,12 @@ |
||||
|
||||
|
||||
#include "cw/action.h" |
||||
|
||||
|
||||
int capwap_in_session_id(struct conn *conn, struct cw_action_in *a, uint8_t * data, |
||||
int len, struct sockaddr *from){ |
||||
|
||||
memcpy(conn->session_id,data,len); |
||||
return 1; |
||||
} |
||||
|
Loading…
Reference in new issue