Lines Matching refs:fopts
468 const filt_opts_t *fopts)
471 const addr_port_t *apfrom = &fopts->filt.opt3.fo_from;
472 const addr_port_t *apto = &fopts->filt.opt3.fo_to;
514 opts = MATCH_SRC | (fopts->fo_finvert ? MATCH_INVERT : 0);
516 opts = MATCH_DST | (fopts->fo_tinvert ? MATCH_INVERT : 0);
537 build_l2_code(npf_bpf_t *bc, const filt_opts_t *fopts)
540 npfvar_t *ap_from = fopts->filt.opt2.from_mac;
541 npfvar_t *ap_to = fopts->filt.opt2.to_mac;
542 const uint16_t ether_type = fopts->filt.opt2.ether_type;
554 opts = MATCH_DST | (fopts->fo_tinvert ? MATCH_INVERT : 0);
556 opts = MATCH_SRC | (fopts->fo_finvert ? MATCH_INVERT : 0);
564 const filt_opts_t *fopts)
568 uint32_t layer = fopts->layer;
572 if (!build_l3_code(bc, rl, family, popts, fopts))
575 if (!build_l2_code(bc, fopts))
834 const npfvar_t *popts, const filt_opts_t *fopts,
846 if (fopts == NULL)
847 fopts = &empty_fopts;
858 attr |= npf_rule_layer_compat(cg, fopts->layer);
861 attr |= fopts->layer;
871 npfctl_build_code(rl, family, popts, fopts);
874 if (fopts->uid.op != NPF_OP_NONE) {
875 npf_rule_setrid(rl, fopts->uid, "r_user");
878 if (fopts->gid.op != NPF_OP_NONE) {
879 npf_rule_setrid(rl, fopts->gid, "r_group");
907 const npfvar_t *popts, const filt_opts_t *fopts, unsigned flags)
947 npfctl_build_code(nat, family, popts, fopts);
989 const filt_opts_t *fopts, unsigned algo)
1088 if (__predict_true(!fopts)) {
1089 fopts = &imfopts;
1097 ap1, popts, fopts, flags);
1104 ap2, popts, fopts, flags);