Got rid of conn->actions
But there are now a lot of TODO XXX FossilOrigin-Name: 48a574ca77230265480a3054d8f6009d6074a476dd0d39c8544f5fb972ecb615
This commit is contained in:
11
src/cw/dbg.c
11
src/cw/dbg.c
@ -196,10 +196,12 @@ void cw_dbg_missing_mand(int level, struct conn *conn, cw_action_in_t ** ml, int
|
||||
char *p = buffer;
|
||||
int i;
|
||||
char *delim = "";
|
||||
// TODO XXXX
|
||||
for (i = 0; i < n; i++) {
|
||||
p += sprintf(p, "%s", delim);
|
||||
/* p += sprintf(p, "%s", delim);
|
||||
delim = ", ";
|
||||
p += sprintf(p, "%s", cw_strelemp(conn->actions, ml[i]->elem_id));
|
||||
*/
|
||||
}
|
||||
cw_dbg(level, "Missing mandatory elements: [%s]", buffer);
|
||||
}
|
||||
@ -548,18 +550,21 @@ void cw_dbg_elem_colored(int level, struct conn *conn, int msg, int msgelem,
|
||||
char vendorname[256];
|
||||
char vendor_details[265];
|
||||
*vendor_details = 0;
|
||||
/// TODO XXXX
|
||||
|
||||
if (msgelem == CAPWAP_ELEM_VENDOR_SPECIFIC_PAYLOAD) {
|
||||
uint32_t vendor_id = ntohl(*((uint32_t *) msgbuf));
|
||||
int type = ntohs(*((uint16_t *) (msgbuf + 4)));
|
||||
cw_format_vendor(vendor_details, vendor_id, type, msgbuf);
|
||||
sprintf(vendorname, "%s/%s/%s",
|
||||
/* sprintf(vendorname, "%s/%s/%s",
|
||||
cw_strelemp(conn->actions, msgelem),
|
||||
(char *) cw_strvendor(vendor_id), vendor_details);
|
||||
*/
|
||||
elemname = vendorname;
|
||||
|
||||
} else {
|
||||
elemname = cw_strelemp(conn->actions, msgelem);
|
||||
// elemname = cw_strelemp(conn->actions, msgelem);
|
||||
elemname=0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user