Lines Matching defs:afp
1086 struct acc_filter *afp, *prev, *tmp;
1098 afp = malloc(sizeof(struct acc_filter), M_DEVBUF, M_WAITOK|M_ZERO);
1099 if (afp == NULL)
1102 afp->f_filter = *filter;
1103 afp->f_class = class;
1107 struct flow_filter *filter4 = &afp->f_filter;
1140 (struct flow_filter6 *)&afp->f_filter;
1172 afp->f_handle = get_filt_handle(classifier, i);
1175 afp->f_fbmask = filt2fibmask(filter);
1176 classifier->acc_fbmask |= afp->f_fbmask;
1185 if (tmp->f_filter.ff_ruleno > afp->f_filter.ff_ruleno)
1191 LIST_INSERT_HEAD(&classifier->acc_filters[i], afp, f_chain);
1193 LIST_INSERT_AFTER(prev, afp, f_chain);
1196 *phandle = afp->f_handle;
1203 struct acc_filter *afp;
1206 if ((afp = filth_to_filtp(classifier, handle)) == NULL)
1210 LIST_REMOVE(afp, f_chain);
1213 free(afp, M_DEVBUF);
1227 struct acc_filter *afp;
1233 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1234 if (all || afp->f_class == class) {
1235 LIST_REMOVE(afp, f_chain);
1236 free(afp, M_DEVBUF);
1240 } while (afp != NULL);
1255 struct acc_filter *afp;
1266 LIST_FOREACH(afp,
1269 if (apply_tosfilter4(afp->f_fbmask,
1270 &afp->f_filter, fp))
1272 return (afp->f_class);
1277 LIST_FOREACH(afp,
1280 if (apply_ppfilter4(afp->f_fbmask,
1281 &afp->f_filter, fp))
1283 return (afp->f_class);
1292 LIST_FOREACH(afp, &classifier->acc_filters[i],
1294 if (apply_filter4(afp->f_fbmask,
1295 &afp->f_filter, fp))
1297 return (afp->f_class);
1325 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1326 if (apply_filter6(afp->f_fbmask,
1327 (struct flow_filter6 *)&afp->f_filter,
1330 return (afp->f_class);
1469 struct acc_filter *afp;
1477 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1478 if ((afp->f_handle & 0x000fffff) == handle)
1480 if (afp == NULL)
1492 struct acc_filter *afp;
1497 LIST_FOREACH(afp, &classifier->acc_filters[i], f_chain)
1498 if (afp->f_handle == handle)
1499 return afp;