mod_capwap sends correct wtp descriptor now.
FossilOrigin-Name: b1f651a31ae1205d51b70d058e975756b6a302d5c75b5a98e441f3369d5fe5d2
This commit is contained in:
@ -111,8 +111,8 @@ typedef uint8_t *bstr16_t;
|
||||
#define bstr16_data(s) (((uint8_t*)s)+2)
|
||||
|
||||
/**
|
||||
* Return the actual size of a bstr16_t string. That's the
|
||||
* this objects needs in memory to be stored.
|
||||
* Return the actual size of a bstr16_t string. That's the
|
||||
* size this objects needs in memory to be stored.
|
||||
*/
|
||||
#define bstr16_size(l) (l+2)
|
||||
/**
|
||||
@ -143,6 +143,8 @@ static inline uint8_t * bstr16_create(uint8_t *data, uint16_t len)
|
||||
uint8_t * bstr16_create_from_str(const char *s);
|
||||
extern uint8_t * bstr16_create_from_cfgstr(const char * s);
|
||||
|
||||
#define bstr16_replace bstr_replace
|
||||
|
||||
|
||||
/**
|
||||
*@addtogroup BSTRTypes
|
||||
|
@ -219,14 +219,14 @@ static inline int mbag_set_data(mbag_t s, const char *id, const struct mbag_type
|
||||
|
||||
|
||||
static inline bstrv_t mbag_set_bstrv(mbag_t s, const char *id, uint32_t vendor_id,
|
||||
uint8_t * bstrv, int len)
|
||||
uint8_t * version, int len)
|
||||
{
|
||||
mbag_item_t *i = mbag_item_create(s, id);
|
||||
if (!i)
|
||||
return NULL;
|
||||
|
||||
i->type = MBAG_VENDORSTR;
|
||||
i->data = bstrv_create(vendor_id,bstrv,len);
|
||||
i->data = bstrv_create(vendor_id,version,len);
|
||||
return i->data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user