| /dragonfly/sys/vfs/devfs/ |
| HD | devfs_rules.c | 81 struct devfs_rule *rule; in devfs_rule_alloc() local 84 rule = objcache_get(devfs_rule_cache, M_WAITOK); in devfs_rule_alloc() 85 memset(rule, 0, sizeof(struct devfs_rule)); in devfs_rule_alloc() 96 rule->mntpoint = kstrdup(templ->mntpoint, M_DEVFS); in devfs_rule_alloc() 97 rule->mntpointlen = len; in devfs_rule_alloc() 109 rule->name = kstrdup(templ->name, M_DEVFS); in devfs_rule_alloc() 110 rule->namlen = len; in devfs_rule_alloc() 123 rule->linkname = kstrdup(templ->linkname, M_DEVFS); in devfs_rule_alloc() 124 rule->linknamlen = len; in devfs_rule_alloc() 127 rule->rule_type = templ->rule_type; in devfs_rule_alloc() [all …]
|
| /dragonfly/contrib/libarchive/tar/ |
| HD | subst.c | 72 struct subst_rule *rule; in add_substitution() local 83 rule = malloc(sizeof(*rule)); in add_substitution() 84 if (rule == NULL) in add_substitution() 86 rule->next = NULL; in add_substitution() 87 rule->result = NULL; in add_substitution() 90 subst->first_rule = rule; in add_substitution() 92 subst->last_rule->next = rule; in add_substitution() 93 subst->last_rule = rule; in add_substitution() 107 if ((r = regcomp(&rule->re, pattern, REG_BASIC)) != 0) { in add_substitution() 109 regerror(r, &rule->re, buf, sizeof(buf)); in add_substitution() [all …]
|
| /dragonfly/sbin/devfsctl/ |
| HD | devfsctl.c | 78 static int dump_config_entry(struct rule *, struct groupdevid *); 79 static int rule_id_iterate(struct groupdevid *, struct rule *, 82 static void rule_fill(struct devfs_rule_ioctl *, struct rule *, 84 static int rule_send(struct rule *, struct groupdevid *); 104 static TAILQ_HEAD(, rule) rule_list = 180 struct rule *rule; in parser_hide() local 183 rule = new_rule(rHIDE, id); in parser_hide() 184 add_rule(rule); in parser_hide() 193 struct rule *rule; in parser_show() local 196 rule = new_rule(rSHOW, id); in parser_show() [all …]
|
| HD | devfsctl.h | 72 struct rule { struct 87 TAILQ_ENTRY(rule) link; argument 98 typedef int (rule_iterate_callback_t)(struct rule *rule, 105 struct rule *new_rule(int, struct groupdevid *); 106 void add_rule(struct rule *);
|
| /dragonfly/sys/net/ipfw3/ |
| HD | ip_fw3_set.c | 89 struct ip_fw *rule; in move_set_dispatch() local 90 for (rule = ctx->rules; rule; rule = rule->next) { in move_set_dispatch() 91 if (rule->set == msg->set_from) in move_set_dispatch() 92 rule->set = msg->set_to; in move_set_dispatch() 124 struct ip_fw *rule; in move_rule_dispatch() local 125 for (rule = ctx->rules; rule; rule = rule->next) { in move_rule_dispatch() 126 if (rule->rulenum == msg->rule_num) in move_rule_dispatch() 127 rule->set = msg->set_to; in move_rule_dispatch() 158 struct ip_fw *rule; in set_swap_dispatch() local 160 for (rule = ctx->rules; rule; rule = rule->next) { in set_swap_dispatch() [all …]
|
| HD | ip_fw3.c | 105 struct ip_fw *rule; member 113 struct ip_fw *rule; member 280 ip_fw3_free_rule(struct ip_fw *rule) in ip_fw3_free_rule() argument 282 kfree(rule, M_IPFW3); in ip_fw3_free_rule() 283 rule = NULL; in ip_fw3_free_rule() 290 struct ip_fw *rule = NULL; in lookup_next_rule() local 297 for (rule = me->next; rule; rule = rule->next) { in lookup_next_rule() 298 if (rule->rulenum >= cmd->arg1) in lookup_next_rule() 302 if (rule == NULL) { /* failure or not a skipto */ in lookup_next_rule() 303 rule = me->next; in lookup_next_rule() [all …]
|
| HD | ip_fw3.h | 134 #define ACTION_PTR(rule) \ argument 135 (ipfw_insn *)((uint32_t *)((rule)->cmd) + ((rule)->act_ofs)) 283 #define RULESIZE(rule) (sizeof(struct ip_fw) + (rule)->cmd_len * 4 - SIZE_OF_IPFWINSN) argument 328 struct ip_fw *rule; /* matching rule */ member 361 #define IOC_RULESIZE(rule) \ argument 362 (sizeof(struct ipfw_ioc_rule) + (rule)->cmd_len * 4 - SIZE_OF_IPFWINSN) 541 int ip_fw3_free_rule(struct ip_fw *rule); 547 struct ip_fw *prev, struct ip_fw *rule); 552 void ip_fw3_clear_counters(struct ip_fw *rule);
|
| /dragonfly/sbin/ip6fw/ |
| HD | ip6fw.c | 777 struct ip6_fw rule; in delete() local 781 memset(&rule, 0, sizeof rule); in delete() 787 rule.fw_number = atoi(*av); av++; ac--; in delete() 788 i = setsockopt(s, IPPROTO_IPV6, IPV6_FW_DEL, &rule, sizeof rule); in delete() 791 warn("rule %u: setsockopt(%s)", rule.fw_number, "IPV6_FW_DEL"); in delete() 841 struct ip6_fw rule; in add() local 847 memset(&rule, 0, sizeof rule); in add() 853 rule.fw_number = atoi(*av); av++; ac--; in add() 863 rule.fw_flg |= IPV6_FW_F_ACCEPT; av++; ac--; in add() 865 rule.fw_flg |= IPV6_FW_F_COUNT; av++; ac--; in add() [all …]
|
| /dragonfly/sys/net/pf/ |
| HD | pf_ioctl.c | 330 struct pf_rule *rule; in pf_get_pool() local 344 rule = TAILQ_LAST(ruleset->rules[rs_num].active.ptr, in pf_get_pool() 347 rule = TAILQ_FIRST(ruleset->rules[rs_num].active.ptr); in pf_get_pool() 353 rule = TAILQ_LAST(ruleset->rules[rs_num].inactive.ptr, in pf_get_pool() 356 rule = TAILQ_FIRST(ruleset->rules[rs_num].inactive.ptr); in pf_get_pool() 359 while ((rule != NULL) && (rule->nr != rule_number)) in pf_get_pool() 360 rule = TAILQ_NEXT(rule, entries); in pf_get_pool() 362 if (rule == NULL) in pf_get_pool() 365 return (&rule->rpool); in pf_get_pool() 394 pf_rm_rule(struct pf_rulequeue *rulequeue, struct pf_rule *rule) in pf_rm_rule() argument [all …]
|
| /dragonfly/sbin/ipfw3/ |
| HD | ipfw3.c | 371 struct ipfw_ioc_rule *rule; in rule_add() local 382 rule = (struct ipfw_ioc_rule *)rulebuf; in rule_add() 387 rule->insert = insert; in rule_add() 394 rule->rulenum = atoi(*av); in rule_add() 403 rule->set = set; in rule_add() 554 dst = (ipfw_insn *)rule->cmd; in rule_add() 574 rule->act_ofs = (uint32_t *)dst - (uint32_t *)(rule->cmd); in rule_add() 600 rule->cmd_len = (u_int32_t *)dst - (u_int32_t *)(rule->cmd); in rule_add() 601 i = (void *)dst - (void *)rule; in rule_add() 602 if (do_set_x(IP_FW_ADD, (void *)rule, i) == -1) { in rule_add() [all …]
|
| HD | ipfw3.h | 148 int do_get_x(int optname, void *rule, int *optlen); 149 int do_set_x(int optname, void *rule, int optlen); 167 void rule_show(struct ipfw_ioc_rule *rule, int pcwidth, int bcwidth); 168 int do_set_x(int optname, void *rule, int optlen); 169 int do_get_x(int optname, void *rule, int *optlen);
|
| /dragonfly/usr.sbin/ftp-proxy/ |
| HD | filter.c | 70 pfr.rule.direction = dir; in add_filter() 103 pfr.rule.rpool.proxy_port[0] = nat_range_low; in add_nat() 104 pfr.rule.rpool.proxy_port[1] = nat_range_high; in add_nat() 136 pfr.rule.rpool.proxy_port[0] = rdr_port; in add_rdr() 259 pfr.rule.af = src->sa_family; in prepare_rule() 260 pfr.rule.proto = IPPROTO_TCP; in prepare_rule() 261 pfr.rule.src.addr.type = PF_ADDR_ADDRMASK; in prepare_rule() 262 pfr.rule.dst.addr.type = PF_ADDR_ADDRMASK; in prepare_rule() 264 memcpy(&pfr.rule.src.addr.v.a.addr.v4, in prepare_rule() 266 memset(&pfr.rule.src.addr.v.a.mask.addr8, 255, 4); in prepare_rule() [all …]
|
| /dragonfly/sys/net/ip6fw/ |
| HD | ip6_fw.h | 112 #define IPV6_FW_GETNSRCP(rule) ((rule)->fw_nports & 0x0f) argument 113 #define IPV6_FW_SETNSRCP(rule, n) do { \ argument 114 (rule)->fw_nports &= ~0x0f; \ 115 (rule)->fw_nports |= (n); \ 117 #define IPV6_FW_GETNDSTP(rule) ((rule)->fw_nports >> 4) argument 118 #define IPV6_FW_SETNDSTP(rule, n) do { \ argument 119 (rule)->fw_nports &= ~0xf0; \ 120 (rule)->fw_nports |= (n) << 4;\ 129 struct ip6_fw *rule; member
|
| HD | ip6_fw.c | 502 struct ip6_fw *rule = NULL; in ip6_fw_chk() local 526 while (chain && (chain->rule->fw_number <= skipto)) { in ip6_fw_chk() 533 struct ip6_fw *const f = chain->rule; in ip6_fw_chk() 738 && chain->chain.le_next->rule->fw_number in ip6_fw_chk() 741 while (chain->chain.le_next->rule->fw_number in ip6_fw_chk() 749 rule = f; in ip6_fw_chk() 767 if ((rule->fw_flg & IPV6_FW_F_COMMAND) == IPV6_FW_F_REJECT in ip6_fw_chk() 771 switch (rule->fw_reject_code) { in ip6_fw_chk() 823 rule->fw_reject_code, 0); in ip6_fw_chk() 854 fwc->rule = ftmp; in add_entry6() [all …]
|
| /dragonfly/sys/net/ipfw/ |
| HD | ip_fw2.c | 1144 ipfw_free_rule(struct ip_fw *rule) in ipfw_free_rule() argument 1146 KASSERT(rule->cpuid == mycpuid, ("rule freed on cpu%d", mycpuid)); in ipfw_free_rule() 1147 KASSERT(rule->refcnt > 0, ("invalid refcnt %u", rule->refcnt)); in ipfw_free_rule() 1148 rule->refcnt--; in ipfw_free_rule() 1149 if (rule->refcnt == 0) { in ipfw_free_rule() 1150 if (rule->cross_rules != NULL) in ipfw_free_rule() 1151 kfree(rule->cross_rules, M_IPFW); in ipfw_free_rule() 1152 kfree(rule, M_IPFW); in ipfw_free_rule() 1170 ipfw_ref_rule(struct ip_fw *rule) in ipfw_ref_rule() argument 1172 KASSERT(rule->cpuid == mycpuid, ("rule used on cpu%d", mycpuid)); in ipfw_ref_rule() [all …]
|
| HD | ip_fw2.h | 357 #define RULESIZE(rule) (sizeof(struct ip_fw) + (rule)->cmd_len * 4 - 4) argument 392 struct ip_fw *rule; /* matching rule */ member 441 #define ACTION_PTR(rule) \ argument 442 (ipfw_insn *)((uint32_t *)((rule)->cmd) + ((rule)->act_ofs)) 470 #define IOC_RULESIZE(rule) \ argument 471 (sizeof(struct ipfw_ioc_rule) + (rule)->cmd_len * 4 - 4)
|
| /dragonfly/contrib/gdb-7/gdb/ |
| HD | source.c | 917 substitute_path_rule_matches (const struct substitute_path_rule *rule, in substitute_path_rule_matches() argument 920 const int from_len = strlen (rule->from); in substitute_path_rule_matches() 936 if (FILENAME_CMP (path_start, rule->from) != 0) in substitute_path_rule_matches() 955 struct substitute_path_rule *rule = substitute_path_rules; in get_substitute_path_rule() local 957 while (rule != NULL && !substitute_path_rule_matches (rule, path)) in get_substitute_path_rule() 958 rule = rule->next; in get_substitute_path_rule() 960 return rule; in get_substitute_path_rule() 973 const struct substitute_path_rule *rule = get_substitute_path_rule (path); in rewrite_source_path() local 977 if (rule == NULL) in rewrite_source_path() 980 from_len = strlen (rule->from); in rewrite_source_path() [all …]
|
| /dragonfly/usr.sbin/pfctl/ |
| HD | pfctl.c | 761 pfctl_print_rule_counters(struct pf_rule *rule, int opts) in pfctl_print_rule_counters() argument 770 if (rule->skip[i].nr == rule->nr + 1) in pfctl_print_rule_counters() 773 if (rule->skip[i].nr == (uint32_t)(-1)) in pfctl_print_rule_counters() 776 printf("%u ", rule->skip[i].nr); in pfctl_print_rule_counters() 781 rule->qname, rule->qid, rule->pqname, rule->pqid); in pfctl_print_rule_counters() 786 (unsigned long long)rule->evaluations, in pfctl_print_rule_counters() 787 (unsigned long long)(rule->packets[0] + in pfctl_print_rule_counters() 788 rule->packets[1]), in pfctl_print_rule_counters() 789 (unsigned long long)(rule->bytes[0] + in pfctl_print_rule_counters() 790 rule->bytes[1]), rule->states_cur); in pfctl_print_rule_counters() [all …]
|
| /dragonfly/contrib/byacc/ |
| HD | closure.c | 25 int rule; in set_EFF() local 34 for (rule = *sp; rule > 0; rule = *++sp) in set_EFF() 36 symbol = ritem[rrhs[rule]]; in set_EFF() 61 int rule; in set_first_derives() local 89 while ((rule = *rp++) >= 0) in set_first_derives() 91 SETBIT(rrow, rule); in set_first_derives()
|
| HD | graph.c | 63 int rule; in graph_state() local 69 rule = -(*sp); in graph_state() 70 fprintf(graph_file, " %s -> ", symbol_pname[rlhs[rule]]); in graph_state() 72 for (sp = ritem + rrhs[rule]; sp < sp1; sp++) in graph_state()
|
| /dragonfly/usr.sbin/sshlockout/ |
| HD | sshlockout.c | 189 char *rule = av[2]; in parse_args() local 191 if (strlen(rule) > 0 && strlen(rule) <= 5) { in parse_args() 192 for (char *s = rule; *s; ++s) { in parse_args() 196 if (atoi(rule) < 1) in parse_args() 198 if (atoi(rule) > 65535) in parse_args() 201 args.arg1 = rule; in parse_args()
|
| /dragonfly/sys/conf/ |
| HD | files | 10 no-obj no-implicit-rule before-depend \ 15 no-obj no-implicit-rule before-depend \ 20 no-obj no-implicit-rule before-depend \ 25 no-obj no-implicit-rule before-depend \ 418 no-implicit-rule before-depend local \ 423 no-implicit-rule \ 428 no-obj no-implicit-rule \ 432 no-implicit-rule before-depend local \ 437 no-implicit-rule \ 442 no-obj no-implicit-rule \ [all …]
|
| /dragonfly/games/atc/ |
| HD | input.c | 71 RULE *rule; member 77 int rule; member 82 #define T_RULE stack[level].rule 232 sprintf(T_STR, st[T_STATE].rule[ruleno].str, tval); in push() 235 newstate = st[T_STATE].rule[ruleno].to_state; in push() 269 if (st[T_STATE].rule[i].token == c || in getcommand() 270 st[T_STATE].rule[i].token == tval) { in getcommand() 287 func = st[stack[i].state].rule[stack[i].rule].func; in getcommand()
|
| /dragonfly/crypto/libressl/ssl/ |
| HD | ssl_ciph.c | 796 unsigned long alg_ssl, unsigned long algo_strength, int rule, in ssl_cipher_apply_rule() argument 803 if (rule == CIPHER_DEL) in ssl_cipher_apply_rule() 852 if (rule == CIPHER_ADD) { in ssl_cipher_apply_rule() 860 else if (rule == CIPHER_ORD) { in ssl_cipher_apply_rule() 865 } else if (rule == CIPHER_DEL) { in ssl_cipher_apply_rule() 874 } else if (rule == CIPHER_KILL) { in ssl_cipher_apply_rule() 950 int j, multi, found, rule, retval, ok, buflen; in ssl_cipher_process_rulestr() local 966 rule = CIPHER_DEL; in ssl_cipher_process_rulestr() 969 rule = CIPHER_ORD; in ssl_cipher_process_rulestr() 972 rule = CIPHER_KILL; in ssl_cipher_process_rulestr() [all …]
|
| /dragonfly/sys/net/ipfw3_basic/ |
| HD | ip_fw3_basic.c | 107 struct ip_fw *rule = NULL; in lookup_next_rule() local 114 for (rule = me->next; rule; rule = rule->next) { in lookup_next_rule() 115 if (rule->rulenum >= cmd->arg1) in lookup_next_rule() 119 if (rule == NULL) /* failure or not a skipto */ in lookup_next_rule() 120 rule = me->next; in lookup_next_rule() 122 me->next_rule = rule; in lookup_next_rule() 123 return rule; in lookup_next_rule()
|