Lines Matching defs:afp

1356 	struct acc_filter *afp, *prev, *tmp;
1368 afp = malloc(sizeof(struct acc_filter),
1370 if (afp == NULL)
1372 bzero(afp, sizeof(struct acc_filter));
1374 afp->f_filter = *filter;
1375 afp->f_class = class;
1379 struct flow_filter *filter4 = &afp->f_filter;
1412 (struct flow_filter6 *)&afp->f_filter;
1444 afp->f_handle = get_filt_handle(classifier, i);
1447 afp->f_fbmask = filt2fibmask(filter);
1448 classifier->acc_fbmask |= afp->f_fbmask;
1461 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
1467 LIST_INSERT_HEAD(&classifier->acc_filters[i], afp, f_chain);
1469 LIST_INSERT_AFTER(prev, afp, f_chain);
1472 *phandle = afp->f_handle;
1481 struct acc_filter *afp;
1484 if ((afp = filth_to_filtp(classifier, handle)) == NULL)
1492 LIST_REMOVE(afp, f_chain);
1495 free(afp, M_DEVBUF);
1512 struct acc_filter *afp;
1522 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1523 if (all || afp->f_class == class) {
1524 LIST_REMOVE(afp, f_chain);
1525 free(afp, M_DEVBUF);
1529 } while (afp != NULL);
1547 struct acc_filter *afp;
1558 LIST_FOREACH(afp,
1561 if (apply_tosfilter4(afp->f_fbmask,
1562 &afp->f_filter, fp))
1564 return (afp->f_class);
1569 LIST_FOREACH(afp,
1572 if (apply_ppfilter4(afp->f_fbmask,
1573 &afp->f_filter, fp))
1575 return (afp->f_class);
1584 LIST_FOREACH(afp, &classifier->acc_filters[i],
1586 if (apply_filter4(afp->f_fbmask,
1587 &afp->f_filter, fp))
1589 return (afp->f_class);
1617 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1618 if (apply_filter6(afp->f_fbmask,
1619 (struct flow_filter6 *)&afp->f_filter,
1622 return (afp->f_class);
1771 struct acc_filter *afp;
1779 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1780 if ((afp->f_handle & 0x000fffff) == handle)
1782 if (afp == NULL)
1796 struct acc_filter *afp;
1801 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1802 if (afp->f_handle == handle)
1803 return (afp);