Home | History | Annotate | Download | only in npfctl

Lines Matching defs:el

113 	npf_element_t *el;
115 el = ecalloc(1, sizeof(*el));
116 el->e_data = ecalloc(1, len);
117 el->e_type = type;
118 memcpy(el->e_data, data, len);
122 vp->v_elements = el;
124 vp->v_last->e_next = el;
126 vp->v_last = el;
158 npfvar_free_elements(npf_element_t *el)
160 if (el == NULL)
162 npfvar_free_elements(el->e_next);
163 free(el->e_data);
164 free(el);
234 npf_element_t *el;
255 el = vp->v_elements;
257 el = el->e_next;
260 return el;
270 npf_element_t *el = npfvar_get_element(vp, idx, 0);
272 if (!el)
275 if (el && NPFVAR_TYPE(el->e_type) != NPFVAR_TYPE(type)) {
278 idx, npfvar_type(el->e_type), npfvar_type(type));
281 return el->e_data;
287 npf_element_t *el = npfvar_get_element(vp, idx, 0);
288 return el ? (int)el->e_type : -1;
294 npf_element_t *el = npfvar_get_element(vp, idx, 0);
296 if (!el)
302 if (el->e_type == NPFVAR_VAR_ID) {
303 const npfvar_t *rvp = npfvar_lookup(el->e_data);
309 return (int)el->e_type;
315 npf_element_t *el = npfvar_get_element(vp, idx, 0);
317 if (!el)
323 if (el->e_type == NPFVAR_VAR_ID) {
324 const npfvar_t *rvp = npfvar_lookup(el->e_data);
331 if (el && NPFVAR_TYPE(el->e_type) != NPFVAR_TYPE(type)) {
334 idx, npfvar_type(el->e_type), npfvar_type(type));
337 return el->e_data;