Lines Matching defs:afp
1318 struct acc_filter *afp, *prev, *tmp;
1330 afp = malloc(sizeof(*afp), M_DEVBUF, M_WAITOK | M_ZERO);
1331 afp->f_filter = *filter;
1332 afp->f_class = class;
1336 struct flow_filter *filter4 = &afp->f_filter;
1369 (struct flow_filter6 *)&afp->f_filter;
1401 afp->f_handle = get_filt_handle(classifier, i);
1404 afp->f_fbmask = filt2fibmask(filter);
1405 classifier->acc_fbmask |= afp->f_fbmask;
1414 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
1420 LIST_INSERT_HEAD(&classifier->acc_filters[i], afp, f_chain);
1422 LIST_INSERT_AFTER(prev, afp, f_chain);
1425 *phandle = afp->f_handle;
1434 struct acc_filter *afp;
1437 if ((afp = filth_to_filtp(classifier, handle)) == NULL)
1441 LIST_REMOVE(afp, f_chain);
1444 free(afp, M_DEVBUF);
1461 struct acc_filter *afp;
1467 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1468 if (all || afp->f_class == class) {
1469 LIST_REMOVE(afp, f_chain);
1470 free(afp, M_DEVBUF);
1474 } while (afp != NULL);
1492 struct acc_filter *afp;
1503 LIST_FOREACH(afp,
1506 if (apply_tosfilter4(afp->f_fbmask,
1507 &afp->f_filter, fp))
1509 return (afp->f_class);
1514 LIST_FOREACH(afp,
1517 if (apply_ppfilter4(afp->f_fbmask,
1518 &afp->f_filter, fp))
1520 return (afp->f_class);
1529 LIST_FOREACH(afp, &classifier->acc_filters[i],
1531 if (apply_filter4(afp->f_fbmask,
1532 &afp->f_filter, fp))
1534 return (afp->f_class);
1562 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1563 if (apply_filter6(afp->f_fbmask,
1564 (struct flow_filter6 *)&afp->f_filter,
1567 return (afp->f_class);
1716 struct acc_filter *afp;
1724 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1725 if ((afp->f_handle & 0x000fffff) == handle)
1727 if (afp == NULL)
1741 struct acc_filter *afp;
1746 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1747 if (afp->f_handle == handle)
1748 return (afp);