WTP sends now CAPWAP_LOCAL_IP_ADDRESS in Join Req
FossilOrigin-Name: 13f087705dd79d06c77982797579f0078d3f863117a3a3320540876ddc9023ef
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
{
|
||||
"ecn_support":"0",
|
||||
"location_data":"Superposition",
|
||||
"wtp_bootloader_version":"11591,W-FAT-BL-0.1",
|
||||
"wtp_hardware_version":"11591,0.1",
|
||||
|
@ -111,7 +111,10 @@ int run_join_d(struct sockaddr *sa)
|
||||
conn->sock = sockfd;
|
||||
sock_copyaddr(&conn->addr, sa);
|
||||
|
||||
/* rc = connect(sockfd, (struct sockaddr *) sa,
|
||||
|
||||
/* we call connect to bind this socket to a local IP address,
|
||||
* which we can later obtain by getsockname */
|
||||
rc = connect(sockfd, (struct sockaddr *) sa,
|
||||
sock_addrlen((struct sockaddr *) sa));
|
||||
|
||||
if (rc < 0) {
|
||||
@ -120,7 +123,7 @@ int run_join_d(struct sockaddr *sa)
|
||||
close(sockfd);
|
||||
return -1;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
cw_dbg(DBG_DTLS, "Establishing DTLS session with %s", sock_addr2str(sa));
|
||||
|
||||
|
@ -59,6 +59,7 @@ int setup_conf(struct conn * conn)
|
||||
|
||||
|
||||
|
||||
mbag_set_byte(conn->config,CW_ITEM_ECN_SUPPORT,get_ecn_support());
|
||||
|
||||
|
||||
return 0;
|
||||
|
@ -21,3 +21,7 @@ bstr_t get_base_rmac()
|
||||
}
|
||||
|
||||
|
||||
uint8_t get_ecn_support()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,11 +1,12 @@
|
||||
#ifndef __WTP_INTERFACE_H
|
||||
#define __WTP_INTERFACE_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
#include "cw/bstr.h"
|
||||
|
||||
extern struct conn * get_conn();
|
||||
extern bstr_t get_base_rmac();
|
||||
uint8_t get_ecn_support();
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user