Lines Matching refs:afp

1361 	struct acc_filter *afp, *prev, *tmp;
1373 afp = malloc(sizeof(struct acc_filter),
1375 if (afp == NULL)
1377 bzero(afp, sizeof(struct acc_filter));
1379 afp->f_filter = *filter;
1380 afp->f_class = class;
1384 struct flow_filter *filter4 = &afp->f_filter;
1417 (struct flow_filter6 *)&afp->f_filter;
1449 afp->f_handle = get_filt_handle(classifier, i);
1452 afp->f_fbmask = filt2fibmask(filter);
1453 classifier->acc_fbmask |= afp->f_fbmask;
1462 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
1468 LIST_INSERT_HEAD(&classifier->acc_filters[i], afp, f_chain);
1470 LIST_INSERT_AFTER(prev, afp, f_chain);
1473 *phandle = afp->f_handle;
1482 struct acc_filter *afp;
1485 if ((afp = filth_to_filtp(classifier, handle)) == NULL)
1489 LIST_REMOVE(afp, f_chain);
1492 free(afp, M_DEVBUF);
1509 struct acc_filter *afp;
1515 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1516 if (all || afp->f_class == class) {
1517 LIST_REMOVE(afp, f_chain);
1518 free(afp, M_DEVBUF);
1522 } while (afp != NULL);
1540 struct acc_filter *afp;
1551 LIST_FOREACH(afp,
1554 if (apply_tosfilter4(afp->f_fbmask,
1555 &afp->f_filter, fp))
1557 return (afp->f_class);
1562 LIST_FOREACH(afp,
1565 if (apply_ppfilter4(afp->f_fbmask,
1566 &afp->f_filter, fp))
1568 return (afp->f_class);
1577 LIST_FOREACH(afp, &classifier->acc_filters[i],
1579 if (apply_filter4(afp->f_fbmask,
1580 &afp->f_filter, fp))
1582 return (afp->f_class);
1610 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1611 if (apply_filter6(afp->f_fbmask,
1612 (struct flow_filter6 *)&afp->f_filter,
1615 return (afp->f_class);
1764 struct acc_filter *afp;
1772 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1773 if ((afp->f_handle & 0x000fffff) == handle)
1775 if (afp == NULL)
1789 struct acc_filter *afp;
1794 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1795 if (afp->f_handle == handle)
1796 return (afp);