MUX_CTL_GET_GLITCHES, /* returns number of glitches on the connection */
MUX_CTL_GET_NBSTRM, /* Return the current number of streams on the connection */
MUX_CTL_GET_MAXSTRM, /* Return the max number of streams supported by the connection */
+ MUX_CTL_TEVTS, /* Return the termination events log of the mux connection */
};
/* sctl command used by mux->sctl() */
enum mux_sctl_type {
MUX_SCTL_SID, /* Return the mux stream ID as output, as a signed 64bits integer */
MUX_SCTL_DBG_STR, /* takes a mux_sctl_dbg_str_ctx argument, reads flags and returns debug info */
+ MUX_SCTL_TEVTS, /* Return the termination events log of the mux stream */
};
#define MUX_SCTL_DBG_STR_L_MUXS 0x00000001 // info from mux stream
return h1_used_streams(conn);
case MUX_CTL_GET_MAXSTRM:
return 1;
+ case MUX_CTL_TEVTS:
+ return h1c->term_evts_log;
default:
return -1;
}
/* other layers not implemented */
dbg_ctx->ret.buf = *buf;
return ret;
+ case MUX_SCTL_TEVTS:
+ return h1s->sd->term_evts_log;
default:
return -1;
}
case MUX_CTL_GET_MAXSTRM:
return h2c->streams_limit;
+ case MUX_CTL_TEVTS:
+ return h2c->term_evts_log;
+
default:
return -1;
}
/* other layers not implemented */
dbg_ctx->ret.buf = *buf;
return ret;
+ case MUX_SCTL_TEVTS:
+ return h2s->sd->term_evts_log;
default:
return -1;