Lines Matching defs:tp
80 register Netflow_template_t* tp;
135 for (tp = mp->templates; tp && tp->id != n; tp = tp->next);
136 if (!tp || !tp->size)
147 if (tp->options)
152 pp->template = tp;
153 pp->next = tp->size;
168 for (tp = mp->templates; tp && tp->id != n; tp = tp->next);
169 if (tp)
170 memset(tp->field, 0, sizeof(tp->field));
171 else if (!(tp = vmnewof(file->dss->vm, 0, Netflow_template_t, 1, 0)))
179 tp->id = n;
180 tp->next = mp->templates;
181 mp->templates = tp;
183 tp->elements = m;
193 fp = &tp->field[n - 1];
198 sfprintf(sfstderr, "template %2d field %2d type %2d size %2d offset %3d\n", tp->id, n, fp->type, fp->size, fp->offset);
201 tp->size = o;
203 sfprintf(sfstderr, "template %d elements %d size %d\n", tp->id, tp->elements, tp->size);
217 for (tp = mp->templates; tp && tp->id != n; tp = tp->next);
218 if (tp)
219 memset(tp->field, 0, sizeof(tp->field));
220 else if (!(tp = vmnewof(file->dss->vm, 0, Netflow_template_t, 1, 0)))
228 tp->id = n;
229 tp->next = mp->templates;
230 mp->templates = tp;
232 tp->elements = m + k;
233 tp->options = k;
242 sfprintf(sfstderr, "template %2d scope %2d size %2d offset %3d\n", tp->id, n, z, o);
251 fp = &tp->field[n - 1];
256 sfprintf(sfstderr, "template %2d field %2d type %2d size %2d offset %3d\n", tp->id, n, fp->type, fp->size, fp->offset);
260 tp->size = o;
262 sfprintf(sfstderr, "template %d elements %d size %d\n", tp->id, tp->elements, tp->size);