FossilOrigin-Name: ecd57f521010c518e8f65a035772d34453de04ead23d85329b1afb8f886762dbbsdmakefiles
parent
3ae4f89bea
commit
d53b45ccb9
@ -0,0 +1,16 @@ |
||||
#include "mod_capwap.h" |
||||
#include "cw/cw.h" |
||||
|
||||
int capwap_out_capwap_local_ip_address(struct cw_ElemHandler * eh,
|
||||
struct cw_ElemHandlerParams * params, uint8_t * dst) |
||||
{ |
||||
cw_KTV_t * ip; |
||||
ip = cw_ktv_get(params->conn->local_cfg,eh->key,CW_TYPE_IPADDRESS); |
||||
if (ip==NULL){ |
||||
return 0; |
||||
} |
||||
return cw_put_local_ip_address(dst,eh->id, |
||||
CAPWAP_ELEM_CAPWAP_LOCAL_IPV4_ADDRESS, |
||||
CAPWAP_ELEM_CAPWAP_LOCAL_IPV6_ADDRESS, |
||||
ip->type->data(ip),ip->type->len(ip)); |
||||
} |
Loading…
Reference in new issue