Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/openbsd/src/share/zoneinfo/
Dzishrink.awk45 rule["Arg"] = "A"
46 rule["Brazil"] = "B"
47 rule["Canada"] = "C"
48 rule["Denmark"] = "D"
49 rule["EU"] = "E"
50 rule["France"] = "F"
51 rule["GB-Eire"] = "G"
52 rule["Halifax"] = "H"
53 rule["Italy"] = "I"
54 rule["Jordan"] = "J"
[all …]
/openbsd/src/usr.sbin/ftp-proxy/
Dfilter.c82 if (add_addr(nat, &pfr.rule.nat) == -1) in add_nat()
85 pfr.rule.direction = PF_OUT; in add_nat()
86 pfr.rule.onrdomain = s_rd; in add_nat()
87 pfr.rule.rtableid = -1; in add_nat()
88 pfr.rule.nat.proxy_port[0] = nat_range_low; in add_nat()
89 pfr.rule.nat.proxy_port[1] = nat_range_high; in add_nat()
109 if (add_addr(rdr, &pfr.rule.rdr) == -1) in add_rdr()
112 pfr.rule.direction = PF_IN; in add_rdr()
113 pfr.rule.onrdomain = s_rd; in add_rdr()
114 pfr.rule.rtableid = d_rd; in add_rdr()
[all …]
/openbsd/src/regress/sbin/pfctl/
Dpfail30.ok1 stdin:2: invalid use of interface (lo0) as the source address of a binat-to rule
2 stdin:2: dynamic interfaces must be used with :0 in a binat-to rule
3 stdin:2: skipping rule due to errors
4 stdin:2: rule expands to no valid combination
5 stdin:3: invalid use of interface (lo0) as the source address of a binat-to rule
6 stdin:3: dynamic interfaces must be used with :0 in a binat-to rule
7 stdin:3: skipping rule due to errors
8 stdin:3: rule expands to no valid combination
10 stdin:4: skipping rule due to errors
11 stdin:4: rule expands to no valid combination
[all …]
Dpfail19.ok2 stdin:4: source and redir addresess must have a matching network mask in binat-rule
3 stdin:4: tables cannot be used as the redirect address of a binat-to rule
4 stdin:4: skipping rule due to errors
5 stdin:4: rule expands to no valid combination
6 stdin:5: invalid use of table <sometable> as the source address of a binat-to rule
7 stdin:5: skipping rule due to errors
8 stdin:5: rule expands to no valid combination
Dpfail27.ok2 stdin:3: skipping rule due to errors
3 stdin:3: rule expands to no valid combination
5 stdin:4: skipping rule due to errors
7 stdin:4: skipping rule due to errors
8 stdin:4: rule expands to no valid combination
10 stdin:5: skipping rule due to errors
11 stdin:5: rule expands to no valid combination
Dpfail1.ok2 stdin:3: skipping rule due to errors
3 stdin:3: rule expands to no valid combination
5 stdin:4: skipping rule due to errors
6 stdin:4: rule expands to no valid combination
8 stdin:5: skipping rule due to errors
9 stdin:5: rule expands to no valid combination
Dpfr11.in3 pass rule pass in from <regress.1> to any
5 pass rule pass in from <regress.1> to <regress.2>
7 pass rule pass in from <regress.1> to any
9 pass rule
/openbsd/src/usr.sbin/tftp-proxy/
Dfilter.c68 pfr.rule.direction = dir; in add_filter()
88 pfr.rule.rdr.addr.type = PF_ADDR_ADDRMASK; in add_rdr()
90 memcpy(&pfr.rule.rdr.addr.v.a.addr.v4, in add_rdr()
92 memset(&pfr.rule.rdr.addr.v.a.mask.addr8, 255, 4); in add_rdr()
94 memcpy(&pfr.rule.rdr.addr.v.a.addr.v6, in add_rdr()
96 memset(&pfr.rule.rdr.addr.v.a.mask.addr8, 255, 16); in add_rdr()
99 pfr.rule.rdr.proxy_port[0] = rdr_port; in add_rdr()
187 pfr.rule.af = src->sa_family; in prepare_rule()
188 pfr.rule.proto = proto; in prepare_rule()
189 pfr.rule.src.addr.type = PF_ADDR_ADDRMASK; in prepare_rule()
[all …]
/openbsd/src/gnu/usr.bin/perl/dist/Devel-PPPort/
DMakefile.PL201 my $rule;
202 foreach $rule ( @rules ) {
203 if ( $rule =~ m{^\s*^PPPort\.pm\s+:}m ) {
204 …$rule =~ s{^(\s*^PPPort\.pm\s+:.*)}{$1 $includes}m; # PPPort.pm depends on all files from parts/inc
205 $rule =~ s{pm_to_blib}{}m; # PPPort.pm must not depend on built PPPort.pm in blib/
206 } elsif ( $rule =~ m{^\s*^ppport\.h\s+:}m ) {
207 $rule =~ s{^(\s*^ppport\.h\s+:.*)}{$1 PPPort.pm}m; # ppport.h depends on PPPort.pm
208 …$rule =~ s{pm_to_blib}{}m; # ppport.h is used to build RealPPPort.xs so cannot depend on built PPP…
209 } elsif ( $rule =~ m{^\s*^RealPPPort\.xs\s+:}m ) {
210 $rule =~ s{^(\s*^RealPPPort\.xs\s+:.*)}{$1 ppport.h}m; # RealPPPort.xs depends on ppport.h
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Test-Harness/lib/TAP/Parser/
DScheduler.pm178 my ( $self, $rule, $tests ) = @_;
180 unless 'HASH' eq ref $rule;
182 my @type = keys %$rule;
195 my $val = $rule->{ $type[0] };
297 my ( $self, $rule ) = @_;
298 return unless defined $rule;
299 return $rule unless 'ARRAY' eq ref $rule;
300 return map { defined() ? $self->_gather($_) : () } map {@$_} @$rule;
338 my ( $self, $rule ) = @_;
342 while ( $index < @$rule ) {
[all …]
/openbsd/src/usr.sbin/smtpd/
Dlka_session.c43 struct rule *rule; member
47 static void lka_expand(struct lka_session *, struct rule *,
49 static void lka_submit(struct lka_session *, struct rule *,
80 lks->expand.rule = NULL; in lka_session()
91 struct rule *rule; in lka_session_forward_reply() local
97 rule = lks->rule; in lka_session_forward_reply()
110 dsp = dict_get(env->sc_dispatchers, lks->rule->dispatcher); in lka_session_forward_reply()
124 lka_submit(lks, rule, xn); in lka_session_forward_reply()
128 dsp = dict_get(env->sc_dispatchers, rule->dispatcher); in lka_session_forward_reply()
131 lks->expand.rule = rule; in lka_session_forward_reply()
[all …]
Dparse.y94 struct rule *rule; variable
1014 if (rule->flag_tag) {
1025 rule->flag_tag = $1 ? -1 : 1;
1026 rule->table_tag = strdup(t->t_name);
1032 if (rule->flag_tag) {
1043 rule->flag_tag = $1 ? -1 : 1;
1044 rule->flag_tag_regex = 1;
1045 rule->table_tag = strdup(t->t_name);
1051 if (rule->flag_smtp_helo) {
1062 rule->flag_smtp_helo = $1 ? -1 : 1;
[all …]
Druleset.c27 ruleset_match_tag(struct rule *r, const struct envelope *evp) in ruleset_match_tag()
46 ruleset_match_from(struct rule *r, const struct envelope *evp) in ruleset_match_from()
92 ruleset_match_to(struct rule *r, const struct envelope *evp) in ruleset_match_to()
111 ruleset_match_smtp_helo(struct rule *r, const struct envelope *evp) in ruleset_match_smtp_helo()
130 ruleset_match_smtp_starttls(struct rule *r, const struct envelope *evp) in ruleset_match_smtp_starttls()
140 ruleset_match_smtp_auth(struct rule *r, const struct envelope *evp) in ruleset_match_smtp_auth()
168 ruleset_match_smtp_mail_from(struct rule *r, const struct envelope *evp) in ruleset_match_smtp_mail_from()
191 ruleset_match_smtp_rcpt_to(struct rule *r, const struct envelope *evp) in ruleset_match_smtp_rcpt_to()
213 struct rule *
216 struct rule *r; in ruleset_match()
/openbsd/src/usr.sbin/relayd/
Dpfe_filter.c371 rio.rule.action = PF_MATCH; in sync_ruleset()
372 rio.rule.quick = 0; in sync_ruleset()
374 rio.rule.action = PF_PASS; in sync_ruleset()
375 rio.rule.quick = 1; /* force first match */ in sync_ruleset()
377 rio.rule.direction = PF_IN; in sync_ruleset()
378 rio.rule.keep_state = PF_STATE_NORMAL; in sync_ruleset()
381 rio.rule.log = 1; in sync_ruleset()
383 rio.rule.log = 0; /* allow change via reload */ in sync_ruleset()
389 rio.rule.flags = TH_SYN; in sync_ruleset()
390 rio.rule.flagset = (TH_SYN|TH_ACK); in sync_ruleset()
[all …]
Dconfig.c145 struct relay_rule *rule; in config_purge() local
185 while ((rule = TAILQ_FIRST(&proto->rules)) != NULL) in config_purge()
186 rule_delete(&proto->rules, rule); in config_purge()
646 struct relay_rule *rule; in config_setrule() local
660 TAILQ_FOREACH(rule, &proto->rules, rule_entry) { in config_setrule()
661 rule->rule_protoid = proto->id; in config_setrule()
662 bzero(&rule->rule_ctl, sizeof(rule->rule_ctl)); in config_setrule()
664 iov[c].iov_base = rule; in config_setrule()
665 iov[c++].iov_len = sizeof(*rule); in config_setrule()
667 if (rule->rule_kv[i].kv_key != NULL) { in config_setrule()
[all …]
Dparse.y116 static struct relay_rule *rule = NULL; variable
1395 if ((rule = calloc(1, sizeof(*rule))) == NULL)
1398 rule->rule_action = $1;
1399 rule->rule_proto = proto->type;
1400 rule->rule_dir = $2;
1401 rule->rule_flags |= $3;
1402 rule->rule_af = $4;
1403 rule->rule_src.addr = $5.ss;
1404 rule->rule_src.addr_mask = $5.prefixlen;
1405 rule->rule_dst.addr = $6.ss;
[all …]
/openbsd/src/sys/net/
Dpf_ioctl.c332 pf_rule_free(struct pf_rule *rule) in pf_rule_free() argument
334 if (rule == NULL) in pf_rule_free()
337 pfi_kif_free(rule->kif); in pf_rule_free()
338 pfi_kif_free(rule->rcv_kif); in pf_rule_free()
339 pfi_kif_free(rule->rdr.kif); in pf_rule_free()
340 pfi_kif_free(rule->nat.kif); in pf_rule_free()
341 pfi_kif_free(rule->route.kif); in pf_rule_free()
343 pool_put(&pf_rule_pl, rule); in pf_rule_free()
347 pf_rm_rule(struct pf_rulequeue *rulequeue, struct pf_rule *rule) in pf_rm_rule() argument
350 if (rule->states_cur == 0 && rule->src_nodes == 0) { in pf_rm_rule()
[all …]
/openbsd/src/sbin/ipsecctl/
Dpfkey.c811 pfkey_parse(struct sadb_msg *msg, struct ipsec_rule *rule) in pfkey_parse() argument
824 rule->satype = IPSEC_ESP; in pfkey_parse()
827 rule->satype = IPSEC_AH; in pfkey_parse()
830 rule->satype = IPSEC_IPCOMP; in pfkey_parse()
833 rule->satype = IPSEC_IPIP; in pfkey_parse()
849 rule->local = calloc(1, sizeof(struct ipsec_addr_wrap)); in pfkey_parse()
850 if (rule->local == NULL) in pfkey_parse()
853 rule->local->af = sa->sa_family; in pfkey_parse()
857 &rule->local->address.v4, in pfkey_parse()
859 set_ipmask(rule->local, 32); in pfkey_parse()
[all …]
Dparse.y2259 copyrule(struct ipsec_rule *rule) in copyrule() argument
2266 r->src = copyhost(rule->src); in copyrule()
2267 r->dst = copyhost(rule->dst); in copyrule()
2268 r->local = copyhost(rule->local); in copyrule()
2269 r->peer = copyhost(rule->peer); in copyrule()
2270 r->auth = copyipsecauth(rule->auth); in copyrule()
2271 r->ikeauth = copyikeauth(rule->ikeauth); in copyrule()
2272 r->xfs = copytransforms(rule->xfs); in copyrule()
2273 r->p1xfs = copytransforms(rule->p1xfs); in copyrule()
2274 r->p2xfs = copytransforms(rule->p2xfs); in copyrule()
[all …]
/openbsd/src/sbin/ifconfig/
Dbrconfig.c947 struct ifbrlreq rule; in bridge_rule() local
954 bzero(&rule, sizeof(rule)); in bridge_rule()
955 strlcpy(rule.ifbr_name, ifname, sizeof(rule.ifbr_name)); in bridge_rule()
958 rule.ifbr_action = BRL_ACTION_BLOCK; in bridge_rule()
960 rule.ifbr_action = BRL_ACTION_PASS; in bridge_rule()
970 rule.ifbr_flags |= BRL_FLAG_IN; in bridge_rule()
972 rule.ifbr_flags |= BRL_FLAG_OUT; in bridge_rule()
974 rule.ifbr_flags |= BRL_FLAG_IN | BRL_FLAG_OUT; in bridge_rule()
976 rule.ifbr_flags |= BRL_FLAG_IN | BRL_FLAG_OUT; in bridge_rule()
988 strlcpy(rule.ifbr_ifsname, argv[0], sizeof(rule.ifbr_ifsname)); in bridge_rule()
[all …]
/openbsd/src/gnu/llvm/clang/docs/
DRefactoringEngine.rst61 refactoring action rule was used.
70 ``clang-refactor`` subcommand. The first rule will describe a local operation
71 that's initiated when the user selects a single switch. The second rule will
76 the most appropriate rule for the given selection and other options.
84 to the source files. Subclasses that choose to implement this rule have to
86 rule is typically used to implement local refactorings that transform the
91 of rule is typically used to implement an interactive renaming action that
93 refactoring. Subclasses that choose to implement this rule have to implement
97 of rule you should use:
110 Once you determine which type of rule is suitable for your needs you can
[all …]
/openbsd/src/usr.bin/doas/
Ddoas.c97 const char **cmdargs, struct rule *r) in match()
136 permit(uid_t uid, gid_t *groups, int ngroups, const struct rule **lastr, in permit()
185 const struct rule *rule; in checkconfig() local
194 rv = permit(uid, groups, ngroups, &rule, target, argv[0], in checkconfig()
197 printf("permit%s\n", (rule->options & NOPASS) ? " nopass" : ""); in checkconfig()
319 const struct rule *rule; in main() local
418 rv = permit(uid, groups, ngroups, &rule, target, cmd, in main()
426 if (!(rule->options & NOPASS)) { in main()
430 authuser(mypw->pw_name, login_style, rule->options & PERSIST); in main()
444 if (rule->cmd) { in main()
[all …]
Denv.c87 createenv(const struct rule *rule, const struct passwd *mypw, in createenv() argument
112 if (rule->options & KEEPENV) { in createenv()
225 prepenv(const struct rule *rule, const struct passwd *mypw, in prepenv() argument
230 env = createenv(rule, mypw, targpw); in prepenv()
231 if (rule->envlist) in prepenv()
232 fillenv(env, rule->envlist); in prepenv()
/openbsd/src/usr.bin/yacc/
Dclosure.c119 int symbol, rowsize, i, rule; in set_EFF() local
128 for (rule = *sp; rule > 0; rule = *++sp) { in set_EFF()
129 symbol = ritem[rrhs[rule]]; in set_EFF()
151 int i, j, rule, rulesetsize, varsetsize; in set_first_derives() local
172 while ((rule = *rp++) >= 0) { in set_first_derives()
173 SETBIT(rrow, rule); in set_first_derives()
/openbsd/src/usr.bin/rsync/
Drules.c24 struct rule { struct
38 static struct rule *rules; argument
101 static struct rule *
104 struct rule *new;
147 parse_pattern(struct rule *r, char *pattern)
204 struct rule *r;
267 send_command(struct rule *r)
309 if (rule->modifiers & modifiers[i].modifier)
327 postfix_command(struct rule *r)
345 struct rule *r;
[all …]

12345678910>>...22