Home | History | Annotate | Download | only in src

Lines Matching refs:layer

43 #include "layer.h"
163 * the async layer record how much it's padded the packet in the mbuf's
251 int layer;
255 * ``push'' function in each layer starting at the top.
263 bp->priv = 0; /* Adjusted by the async layer ! */
264 for (layer = l->nlayers; layer && bp; layer--)
265 if (l->layer[layer - 1]->push != NULL)
266 bp = (*l->layer[layer - 1]->push)(b, l, bp, pri, &proto);
280 int layer;
284 * ``pull'' function in each layer starting at the bottom.
300 layer = 0;
302 while (layer || lbp[layer]) {
303 if (lbp[layer] == NULL) {
304 layer--;
307 bp = lbp[layer];
308 lbp[layer] = bp->m_nextpkt;
310 proto = lproto[layer];
312 if (l->layer[layer]->pull != NULL)
313 bp = (*l->layer[layer]->pull)(b, l, bp, &proto);
315 if (layer == l->nlayers - 1) {
316 /* We've just done the top layer, despatch the packet(s) */
325 lbp[++layer] = bp;
326 lproto[layer] = proto;
332 link_Stack(struct link *l, struct layer *layer)
334 if (l->nlayers == sizeof l->layer / sizeof l->layer[0]) {
335 log_Printf(LogERROR, "%s: Oops, cannot stack a %s layer...\n",
336 l->name, layer->name);
339 l->layer[l->nlayers++] = layer;
403 int layer;
405 for (layer = l->nlayers; layer; layer--)
406 prompt_Printf(arg->prompt, "%s%s", layer == l->nlayers ? "" : ", ",
407 l->layer[layer - 1]->name);