Renamed CW_CONTROL_PORT -> CAPWAP_CONTROL_PORT
FossilOrigin-Name: 8d06edf9b1b889422c94f52e85a8ee510e2010c79343b8ee671e7f3ae0c6f454
This commit is contained in:
@ -48,12 +48,12 @@
|
||||
/** CAPWAP Version */
|
||||
#define CAPWAP_VERSION (0)
|
||||
|
||||
#define CW_IANA_ENTERPRISE_NUMBER 0
|
||||
#define CAPWAP_IANA_ENTERPRISE_NUMBER 0
|
||||
|
||||
/** CAPWAP Control Port*/
|
||||
#define CW_CONTROL_PORT 5246
|
||||
#define CAPWAP_CONTROL_PORT 5246
|
||||
/** CAPWAP Control Port as String */
|
||||
#define CW_CONTROL_PORT_STR "5246"
|
||||
#define CAPWAP_CONTROL_PORT_STR "5246"
|
||||
|
||||
/** CAPWAP Data Port */
|
||||
#define CAPWAP_DATA_PPORT 5247
|
||||
|
@ -62,7 +62,7 @@ int cw_in_capwap_control_ip_address(struct conn *conn, struct cw_action_in *a,
|
||||
struct sockaddr_in addr;
|
||||
memcpy(&addr.sin_addr,data,4);
|
||||
addr.sin_family=AF_INET;
|
||||
sock_setport((struct sockaddr*)&addr,CW_CONTROL_PORT);
|
||||
sock_setport((struct sockaddr*)&addr,CAPWAP_CONTROL_PORT);
|
||||
memcpy(&acip->ip,&addr,sizeof(addr));
|
||||
acip->index = cw_get_word(data+4);
|
||||
}
|
||||
@ -72,7 +72,7 @@ int cw_in_capwap_control_ip_address(struct conn *conn, struct cw_action_in *a,
|
||||
memset (&addr,0,sizeof(addr));
|
||||
memcpy(&addr.sin6_addr,data,16);
|
||||
addr.sin6_family=AF_INET6;
|
||||
sock_setport((struct sockaddr*)&addr,CW_CONTROL_PORT);
|
||||
sock_setport((struct sockaddr*)&addr,CAPWAP_CONTROL_PORT);
|
||||
memcpy(&acip->ip,&addr,sizeof(addr));
|
||||
acip->index = cw_get_word(data+16);
|
||||
}
|
||||
|
Reference in New Issue
Block a user