Lines Matching defs:curflow
208 static struct flowspec_context *curflow;
1200 if ((curflow = calloc(1, sizeof(*curflow))) == NULL)
1202 curflow->aid = $2;
1206 f = flow_to_flowspec(curflow);
1210 flow_free(curflow);
1211 curflow = NULL;
1216 flow_free(curflow);
1217 curflow = NULL;
1233 curflow->type = FLOWSPEC_TYPE_PROTO;
1238 curflow->type = FLOWSPEC_TYPE_PROTO;
1266 curflow->type = FLOWSPEC_TYPE_SRC_PORT;
1267 curflow->addr_type = FLOWSPEC_TYPE_SOURCE;
1272 curflow->type = FLOWSPEC_TYPE_DST_PORT;
1273 curflow->addr_type = FLOWSPEC_TYPE_DEST;
1340 curflow->type = FLOWSPEC_TYPE_TCP_FLAGS;
1343 curflow->type = FLOWSPEC_TYPE_FRAG;
1347 curflow->type = FLOWSPEC_TYPE_PKT_LEN;
1351 curflow->type = FLOWSPEC_TYPE_DSCP;
1402 curflow->type = FLOWSPEC_TYPE_ICMP_TYPE;
1409 if ((code = geticmpcodebyname($1, $3, curflow->aid)) ==
1417 curflow->type = FLOWSPEC_TYPE_ICMP_TYPE;
1420 curflow->type = FLOWSPEC_TYPE_ICMP_CODE;
1429 curflow->type = FLOWSPEC_TYPE_ICMP_TYPE;
1432 curflow->type = FLOWSPEC_TYPE_ICMP_CODE;
1441 if ((type = geticmptypebyname($1, curflow->aid)) ==
4153 curflow = NULL;
5606 if (curflow->type == FLOWSPEC_TYPE_FRAG) {
5607 if (curflow->aid == AID_INET)
5701 if (curflow->components[curflow->addr_type] != NULL) {
5706 if (curflow->aid != addr->aid) {
5711 switch (curflow->aid) {
5733 if (curflow->aid == AID_INET6)
5737 curflow->complen[curflow->addr_type] = complen;
5738 curflow->components[curflow->addr_type] = comp;
5756 complen = curflow->complen[curflow->type];
5757 comp = realloc(curflow->components[curflow->type],
5766 curflow->complen[curflow->type] = complen;
5767 curflow->components[curflow->type] = comp;
5845 complen = curflow->complen[curflow->type];
5846 comp = realloc(curflow->components[curflow->type],
5856 curflow->complen[curflow->type] = complen;
5857 curflow->components[curflow->type] = comp;