1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node: add netem details to node name

This commit is contained in:
Steffen Vogel 2019-01-21 23:00:16 +01:00
parent 37dc6904ad
commit baa94bcf8a

View file

@ -634,16 +634,21 @@ char * node_name_long(struct node *n)
if (!n->_name_long) {
if (node_type(n)->print) {
struct node_type *vt = node_type(n);
char *name_long = vt->print(n);
strcatf(&n->_name_long, "%s: #in.signals=%zu, #in.hooks=%zu, in.vectorize=%d, #out.hooks=%zu, out.vectorize=%d, out.netem=%s, %s",
strcatf(&n->_name_long, "%s: #in.signals=%zu, #in.hooks=%zu, in.vectorize=%d, #out.hooks=%zu, out.vectorize=%d, out.netem=%s",
node_name(n),
vlist_length(&n->signals),
vlist_length(&n->in.hooks), n->in.vectorize,
vlist_length(&n->out.hooks), n->out.vectorize,
n->tc_qdisc ? "yes" : "no",
name_long
n->tc_qdisc ? "yes" : "no"
);
if (n->tc_qdisc)
strcatf(&n->_name_long, ", mark=%d", n->mark);
/* Append node-type specific details */
char *name_long = vt->print(n);
strcatf(&n->_name_long, ", %s", name_long);
free(name_long);
}
else