Lines Matching full:position
178 return g_strdup(nf->position); in netfilter_get_position()
185 nf->position = g_strdup(str); in netfilter_set_position()
214 nf->position = g_strdup("tail"); in netfilter_init()
220 NetFilterState *position = NULL; in netfilter_complete() local
248 if (strcmp(nf->position, "head") && strcmp(nf->position, "tail")) { in netfilter_complete()
253 if (!g_str_has_prefix(nf->position, "id=")) { in netfilter_complete()
254 error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "position", in netfilter_complete()
260 position_id = g_strndup(nf->position + 3, strlen(nf->position) - 3); in netfilter_complete()
262 /* Search for the position to insert before/behind */ in netfilter_complete()
271 position = NETFILTER(obj); in netfilter_complete()
273 if (position->netdev != ncs[0]) { in netfilter_complete()
293 if (position) { in netfilter_complete()
295 QTAILQ_INSERT_BEFORE(position, nf, next); in netfilter_complete()
297 QTAILQ_INSERT_AFTER(&nf->netdev->filters, position, nf, next); in netfilter_complete()
299 } else if (!strcmp(nf->position, "head")) { in netfilter_complete()
301 } else if (!strcmp(nf->position, "tail")) { in netfilter_complete()
320 g_free(nf->position); in netfilter_finalize()
348 object_class_property_add_str(oc, "position", in netfilter_class_init()