CS_FL_ISBACK is a new flag, set on backend conn-streams. We must just be
careful to preserve this flag when the endpoint is detached from the
conn-stream.
printf("0\n");
return;
}
+ SHOW_FLAG(f, CS_FL_ISBACK);
if (f) {
printf("EXTRA(0x%08x)", f);
/* conn_stream flags */
enum {
CS_FL_NONE = 0x00000000, /* Just for initialization purposes */
+ CS_FL_ISBACK = 0x00000001, /* Set for CS on back-side */
};
/* cs_shutr() modes */
/* FIXME: Rest CS for now but must be reviewed. CS flags are only
* connection related for now but this will evolved
*/
- cs->flags = CS_FL_NONE;
+ cs->flags &= CS_FL_ISBACK;
if (cs->si)
cs->si->ops = &si_embedded_ops;
cs->data_cb = NULL;
if (cs_attach_strm(s->csf, s) < 0)
goto out_fail_attach_csf;
- s->csb = cs_new_from_strm(s, CS_FL_NONE);
+ s->csb = cs_new_from_strm(s, CS_FL_ISBACK);
if (!s->csb)
goto out_fail_alloc_csb;