• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/net/altq/

Lines Matching refs:afp

1320 	struct acc_filter *afp, *prev, *tmp;
1332 afp = malloc(sizeof(struct acc_filter),
1334 if (afp == NULL)
1336 bzero(afp, sizeof(struct acc_filter));
1338 afp->f_filter = *filter;
1339 afp->f_class = class;
1343 struct flow_filter *filter4 = &afp->f_filter;
1376 (struct flow_filter6 *)&afp->f_filter;
1408 afp->f_handle = get_filt_handle(classifier, i);
1411 afp->f_fbmask = filt2fibmask(filter);
1412 classifier->acc_fbmask |= afp->f_fbmask;
1421 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
1427 LIST_INSERT_HEAD(&classifier->acc_filters[i], afp, f_chain);
1429 LIST_INSERT_AFTER(prev, afp, f_chain);
1432 *phandle = afp->f_handle;
1441 struct acc_filter *afp;
1444 if ((afp = filth_to_filtp(classifier, handle)) == NULL)
1448 LIST_REMOVE(afp, f_chain);
1451 free(afp, M_DEVBUF);
1468 struct acc_filter *afp;
1474 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1475 if (all || afp->f_class == class) {
1476 LIST_REMOVE(afp, f_chain);
1477 free(afp, M_DEVBUF);
1481 } while (afp != NULL);
1499 struct acc_filter *afp;
1510 LIST_FOREACH(afp,
1513 if (apply_tosfilter4(afp->f_fbmask,
1514 &afp->f_filter, fp))
1516 return (afp->f_class);
1521 LIST_FOREACH(afp,
1524 if (apply_ppfilter4(afp->f_fbmask,
1525 &afp->f_filter, fp))
1527 return (afp->f_class);
1536 LIST_FOREACH(afp, &classifier->acc_filters[i],
1538 if (apply_filter4(afp->f_fbmask,
1539 &afp->f_filter, fp))
1541 return (afp->f_class);
1569 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1570 if (apply_filter6(afp->f_fbmask,
1571 (struct flow_filter6 *)&afp->f_filter,
1574 return (afp->f_class);
1723 struct acc_filter *afp;
1731 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1732 if ((afp->f_handle & 0x000fffff) == handle)
1734 if (afp == NULL)
1748 struct acc_filter *afp;
1753 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1754 if (afp->f_handle == handle)
1755 return (afp);