Lines Matching full:right
45 * It has 4 hooks: left, right, left2right, and right2left. Data
46 * entering from the right is passed to the left and duplicated on
47 * right2left, and data entering from the left is passed to the right
49 * sent to left, and data from right2left to right.
80 struct hookinfo right; member
177 hinfo = &privdata->right; in ng_tee_newhook()
184 if (privdata->right.dest) in ng_tee_newhook()
185 privdata->right.dup = privdata->right.dest; in ng_tee_newhook()
186 privdata->right.dest = hinfo; in ng_tee_newhook()
190 if (privdata->right.dest) in ng_tee_newhook()
191 privdata->right.dup = hinfo; in ng_tee_newhook()
193 privdata->right.dest = hinfo; in ng_tee_newhook()
237 bcopy(&sc->right.stats, &stats->right, in ng_tee_rcvmsg()
238 sizeof(stats->right)); in ng_tee_rcvmsg()
247 bzero(&sc->right.stats, in ng_tee_rcvmsg()
248 sizeof(sc->right.stats)); in ng_tee_rcvmsg()
264 if (lasthook == sc->left.hook || lasthook == sc->right.hook) { in ng_tee_rcvmsg()
286 * If data comes in the right link send a copy out right2left, and then
337 * If we have both a left and right hook, then we probably want to extricate
346 if (privdata->left.hook && privdata->right.hook) in ng_tee_close()
347 ng_bypass(privdata->left.hook, privdata->right.hook); in ng_tee_close()
384 if (sc->right.dest == hinfo) { in ng_tee_disconnect()
385 sc->right.dest = sc->right.dup; in ng_tee_disconnect()
386 sc->right.dup = NULL; in ng_tee_disconnect()
387 } else if (sc->right.dup == hinfo) in ng_tee_disconnect()
388 sc->right.dup = NULL; in ng_tee_disconnect()