Ren CW_MSG_DISCOVERY... -> CAPWAP_MSG_DISCOVERY...
FossilOrigin-Name: 1a59f66389b747cd2a70a3ce4c187e61ba256fa8364df4fed6879bb0ba368a1a
This commit is contained in:
@ -34,7 +34,7 @@ static cw_action_in_t actions_in[] = {
|
||||
*/
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.end = cw_in_check_disc_req
|
||||
}
|
||||
,
|
||||
@ -42,7 +42,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element Discovery Type */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_DISCOVERY_TYPE,
|
||||
.start = cw_in_generic2,
|
||||
.item_id = "discovery_type",
|
||||
@ -55,7 +55,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element WTP Board Data - Discovery Request */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_BOARD_DATA,
|
||||
.start = cw_in_wtp_board_data,
|
||||
.item_id = CW_ITEM_WTP_BOARD_DATA,
|
||||
@ -66,7 +66,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element WTP Descriptor - Discovery */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_DESCRIPTOR,
|
||||
.start = capwap_in_wtp_descriptor,
|
||||
.item_id = "wtp_descriptor",
|
||||
@ -78,7 +78,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element WTP Frame Tunnel Mode */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_FRAME_TUNNEL_MODE,
|
||||
.start = cw_in_generic2,
|
||||
.item_id = CW_ITEM_WTP_FRAME_TUNNEL_MODE,
|
||||
@ -91,7 +91,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element WTP Mac Type */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_MAC_TYPE,
|
||||
.start = cw_in_generic2,
|
||||
.item_id = CW_ITEM_WTP_MAC_TYPE,
|
||||
@ -104,7 +104,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* MTU Discovery Padding */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_MTU_DISCOVERY_PADDING,
|
||||
.start = cw_in_mtu_discovery_padding,
|
||||
}
|
||||
@ -113,7 +113,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Vendor Specific Payload */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_VENDOR_SPECIFIC_PAYLOAD,
|
||||
.start = cw_in_vendor_specific_payload,
|
||||
.min_len=7
|
||||
|
@ -450,7 +450,7 @@ static cw_action_out_t actions_out[] = {
|
||||
|
||||
/* Discovery Type - Discovery Request */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_DISCOVERY_TYPE,
|
||||
.item_id = CW_ITEM_DISCOVERY_TYPE,
|
||||
.out = cw_out_generic,
|
||||
@ -461,7 +461,7 @@ static cw_action_out_t actions_out[] = {
|
||||
|
||||
/* WTP Board Data - Discovery Request */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_BOARD_DATA,
|
||||
.item_id = CW_ITEM_WTP_BOARD_DATA,
|
||||
.out = cw_out_wtp_board_data,
|
||||
@ -472,7 +472,7 @@ static cw_action_out_t actions_out[] = {
|
||||
|
||||
/* WTP Descriptor - Discover Request */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_DESCRIPTOR,
|
||||
.item_id = CW_ITEM_WTP_DESCRIPTOR,
|
||||
.out = capwap_out_wtp_descriptor,
|
||||
@ -484,7 +484,7 @@ static cw_action_out_t actions_out[] = {
|
||||
|
||||
/* WTP Frame TunnelMode - Discovery Request */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_FRAME_TUNNEL_MODE,
|
||||
.item_id = CW_ITEM_WTP_FRAME_TUNNEL_MODE,
|
||||
.out = cw_out_generic,
|
||||
@ -495,7 +495,7 @@ static cw_action_out_t actions_out[] = {
|
||||
|
||||
/* WTP Mac Type - Discovery Request */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_MAC_TYPE,
|
||||
.item_id = CW_ITEM_WTP_MAC_TYPE,
|
||||
.out = cw_out_generic,
|
||||
|
@ -28,7 +28,7 @@ static cw_action_in_t actions_ac_in[] = {
|
||||
/* 802.11 Radio Information - Discovery Request */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
|
||||
.item_id = CW_RADIOITEM80211_WTP_RADIO_INFORMATION,
|
||||
.start = cw_in_radio_generic,
|
||||
|
@ -72,7 +72,7 @@ cw_action_out_t actions_out[]={
|
||||
|
||||
/* 802.11 Radio Information - Discovery Request */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.item_id = CW_ITEM_RADIO_INFOS ,
|
||||
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
|
||||
.out = cw_out_radio_infos,
|
||||
|
@ -31,8 +31,8 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
|
||||
return 0;
|
||||
|
||||
int wbid = cw_get_hdr_wbid(rawmsg);
|
||||
if (wbid != CW_WBID_IEEE80211 ) {
|
||||
cw_dbg(DBG_MOD,"CAPWAP80211 detected: no, my wbid=%d, remote wbid=%d",CW_WBID_IEEE80211,wbid);
|
||||
if (wbid != CAPWAP_WBID_IEEE80211 ) {
|
||||
cw_dbg(DBG_MOD,"CAPWAP80211 detected: no, my wbid=%d, remote wbid=%d",CAPWAP_WBID_IEEE80211,wbid);
|
||||
return 0;
|
||||
}
|
||||
cw_dbg(DBG_MOD,"CAPWAP80211 detected: yes");
|
||||
|
@ -51,7 +51,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Message Discovery Request */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.end = cw_in_check_disc_req
|
||||
}
|
||||
,
|
||||
@ -59,7 +59,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element WTP Descriptor */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_DESCRIPTOR,
|
||||
.start = cisco_in_wtp_descriptor,
|
||||
.item_id = "wtp_descriptor",
|
||||
@ -70,7 +70,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element Cisco RAD Name */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.vendor_id = CW_VENDOR_ID_CISCO,
|
||||
.elem_id = CW_CISCO_RAD_NAME,
|
||||
.start=cw_in_generic2,
|
||||
@ -87,7 +87,7 @@ static cw_action_in_t actions_in[] = {
|
||||
*/
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_BOARD_DATA,
|
||||
.start = cw_in_wtp_board_data,
|
||||
.item_id = CW_ITEM_WTP_BOARD_DATA,
|
||||
@ -504,7 +504,7 @@ static cw_action_in_t actions80211_in[] = {
|
||||
so make it non-mandatory */
|
||||
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
|
||||
.item_id = CW_RADIOITEM80211_WTP_RADIO_INFORMATION,
|
||||
.start = cw_in_radio_generic,
|
||||
|
@ -268,7 +268,7 @@ static cw_action_out_t actions_out[]={
|
||||
|
||||
/* WTP Descriptor - Discovery */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_DESCRIPTOR,
|
||||
.item_id = CW_ITEM_WTP_DESCRIPTOR,
|
||||
.out = cisco_out_wtp_descriptor,
|
||||
@ -279,7 +279,7 @@ static cw_action_out_t actions_out[]={
|
||||
|
||||
/* Cisco RAD Name (WTP Name) - Discovery */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.vendor_id = CW_VENDOR_ID_CISCO,
|
||||
.elem_id = CW_CISCO_RAD_NAME,
|
||||
.item_id = CW_ITEM_WTP_NAME,
|
||||
|
@ -40,7 +40,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Message Discovery Request */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.end = cw_in_check_disc_req
|
||||
}
|
||||
,
|
||||
@ -48,7 +48,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element WTP Descriptor */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM_WTP_DESCRIPTOR,
|
||||
.start = cisco_in_wtp_descriptor,
|
||||
.item_id = "wtp_descriptor",
|
||||
@ -59,7 +59,7 @@ static cw_action_in_t actions_in[] = {
|
||||
/* Element Cisco RAD Name */
|
||||
{
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.vendor_id = CW_VENDOR_ID_CISCO,
|
||||
.elem_id = CW_CISCO_RAD_NAME,
|
||||
.start=cw_in_generic2,
|
||||
@ -182,7 +182,7 @@ static cw_action_out_t actions_out[]={
|
||||
* Important to get the WTP a DTLS connection established
|
||||
*/
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_RESPONSE,
|
||||
.item_id = CW_ITEM_AC_TIMESTAMP,
|
||||
.vendor_id = CW_VENDOR_ID_CISCO,
|
||||
.elem_id = CW_CISCO_AP_TIMESYNC,
|
||||
@ -192,7 +192,7 @@ static cw_action_out_t actions_out[]={
|
||||
,
|
||||
/* AC Descriptor - Discovery Response */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_RESPONSE,
|
||||
.item_id = CW_ITEM_AC_DESCRIPTOR,
|
||||
.elem_id = CW_ELEM_AC_DESCRIPTOR,
|
||||
.out = cisco_out_ac_descriptor,
|
||||
@ -250,7 +250,7 @@ static cw_action_in_t actions80211_in[] = {
|
||||
so make it non-mandatory */
|
||||
|
||||
.capwap_state = CW_STATE_DISCOVERY,
|
||||
.msg_id = CW_MSG_DISCOVERY_REQUEST,
|
||||
.msg_id = CAPWAP_MSG_DISCOVERY_REQUEST,
|
||||
.elem_id = CW_ELEM80211_WTP_RADIO_INFORMATION,
|
||||
.item_id = "radio_information",
|
||||
.start = cw_in_radio_generic,
|
||||
|
Reference in New Issue
Block a user