Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.15/net/netfilter/
Dxt_repldata.h22 struct type##_replace repl; \
32 strncpy(tbl->repl.name, info->name, sizeof(tbl->repl.name)); \
34 tbl->repl.valid_hooks = hook_mask; \
35 tbl->repl.num_entries = nhooks + 1; \
36 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \
41 tbl->repl.hook_entry[hooknum] = bytes; \
42 tbl->repl.underflow[hooknum] = bytes; \
/Linux-v5.15/net/ipv6/netfilter/
Dip6table_filter.c46 struct ip6t_replace *repl; in ip6table_filter_table_init() local
49 repl = ip6t_alloc_initial_table(&packet_filter); in ip6table_filter_table_init()
50 if (repl == NULL) in ip6table_filter_table_init()
53 ((struct ip6t_standard *)repl->entries)[1].target.verdict = in ip6table_filter_table_init()
56 err = ip6t_register_table(net, &packet_filter, repl, filter_ops); in ip6table_filter_table_init()
57 kfree(repl); in ip6table_filter_table_init()
Dip6table_security.c46 struct ip6t_replace *repl; in ip6table_security_table_init() local
49 repl = ip6t_alloc_initial_table(&security_table); in ip6table_security_table_init()
50 if (repl == NULL) in ip6table_security_table_init()
52 ret = ip6t_register_table(net, &security_table, repl, sectbl_ops); in ip6table_security_table_init()
53 kfree(repl); in ip6table_security_table_init()
Dip6table_raw.c46 struct ip6t_replace *repl; in ip6table_raw_table_init() local
53 repl = ip6t_alloc_initial_table(table); in ip6table_raw_table_init()
54 if (repl == NULL) in ip6table_raw_table_init()
56 ret = ip6t_register_table(net, table, repl, rawtable_ops); in ip6table_raw_table_init()
57 kfree(repl); in ip6table_raw_table_init()
Dip6table_nat.c117 struct ip6t_replace *repl; in ip6table_nat_table_init() local
120 repl = ip6t_alloc_initial_table(&nf_nat_ipv6_table); in ip6table_nat_table_init()
121 if (repl == NULL) in ip6table_nat_table_init()
123 ret = ip6t_register_table(net, &nf_nat_ipv6_table, repl, in ip6table_nat_table_init()
126 kfree(repl); in ip6table_nat_table_init()
134 kfree(repl); in ip6table_nat_table_init()
Dip6table_mangle.c78 struct ip6t_replace *repl; in ip6table_mangle_table_init() local
81 repl = ip6t_alloc_initial_table(&packet_mangler); in ip6table_mangle_table_init()
82 if (repl == NULL) in ip6table_mangle_table_init()
84 ret = ip6t_register_table(net, &packet_mangler, repl, mangle_ops); in ip6table_mangle_table_init()
85 kfree(repl); in ip6table_mangle_table_init()
Dip6_tables.c680 const struct ip6t_replace *repl) in translate_table() argument
688 newinfo->size = repl->size; in translate_table()
689 newinfo->number = repl->num_entries; in translate_table()
704 entry0 + repl->size, in translate_table()
705 repl->hook_entry, in translate_table()
706 repl->underflow, in translate_table()
707 repl->valid_hooks); in translate_table()
710 if (i < repl->num_entries) in translate_table()
719 if (i != repl->num_entries) in translate_table()
722 ret = xt_check_table_hooks(newinfo, repl->valid_hooks); in translate_table()
[all …]
/Linux-v5.15/net/ipv4/netfilter/
Diptable_filter.c46 struct ipt_replace *repl; in iptable_filter_table_init() local
49 repl = ipt_alloc_initial_table(&packet_filter); in iptable_filter_table_init()
50 if (repl == NULL) in iptable_filter_table_init()
53 ((struct ipt_standard *)repl->entries)[1].target.verdict = in iptable_filter_table_init()
56 err = ipt_register_table(net, &packet_filter, repl, filter_ops); in iptable_filter_table_init()
57 kfree(repl); in iptable_filter_table_init()
Darptable_filter.c41 struct arpt_replace *repl; in arptable_filter_table_init() local
44 repl = arpt_alloc_initial_table(&packet_filter); in arptable_filter_table_init()
45 if (repl == NULL) in arptable_filter_table_init()
47 err = arpt_register_table(net, &packet_filter, repl, arpfilter_ops); in arptable_filter_table_init()
48 kfree(repl); in arptable_filter_table_init()
Diptable_security.c47 struct ipt_replace *repl; in iptable_security_table_init() local
50 repl = ipt_alloc_initial_table(&security_table); in iptable_security_table_init()
51 if (repl == NULL) in iptable_security_table_init()
53 ret = ipt_register_table(net, &security_table, repl, sectbl_ops); in iptable_security_table_init()
54 kfree(repl); in iptable_security_table_init()
Diptable_raw.c47 struct ipt_replace *repl; in iptable_raw_table_init() local
54 repl = ipt_alloc_initial_table(table); in iptable_raw_table_init()
55 if (repl == NULL) in iptable_raw_table_init()
57 ret = ipt_register_table(net, table, repl, rawtable_ops); in iptable_raw_table_init()
58 kfree(repl); in iptable_raw_table_init()
Diptable_nat.c115 struct ipt_replace *repl; in iptable_nat_table_init() local
118 repl = ipt_alloc_initial_table(&nf_nat_ipv4_table); in iptable_nat_table_init()
119 if (repl == NULL) in iptable_nat_table_init()
122 ret = ipt_register_table(net, &nf_nat_ipv4_table, repl, NULL); in iptable_nat_table_init()
124 kfree(repl); in iptable_nat_table_init()
132 kfree(repl); in iptable_nat_table_init()
Diptable_mangle.c85 struct ipt_replace *repl; in iptable_mangle_table_init() local
88 repl = ipt_alloc_initial_table(&packet_mangler); in iptable_mangle_table_init()
89 if (repl == NULL) in iptable_mangle_table_init()
91 ret = ipt_register_table(net, &packet_mangler, repl, mangle_ops); in iptable_mangle_table_init()
92 kfree(repl); in iptable_mangle_table_init()
Darp_tables.c521 const struct arpt_replace *repl) in translate_table() argument
529 newinfo->size = repl->size; in translate_table()
530 newinfo->number = repl->num_entries; in translate_table()
546 entry0 + repl->size, in translate_table()
547 repl->hook_entry, in translate_table()
548 repl->underflow, in translate_table()
549 repl->valid_hooks); in translate_table()
552 if (i < repl->num_entries) in translate_table()
561 if (i != repl->num_entries) in translate_table()
564 ret = xt_check_table_hooks(newinfo, repl->valid_hooks); in translate_table()
[all …]
Dip_tables.c662 const struct ipt_replace *repl) in translate_table() argument
670 newinfo->size = repl->size; in translate_table()
671 newinfo->number = repl->num_entries; in translate_table()
686 entry0 + repl->size, in translate_table()
687 repl->hook_entry, in translate_table()
688 repl->underflow, in translate_table()
689 repl->valid_hooks); in translate_table()
692 if (i < repl->num_entries) in translate_table()
701 if (i != repl->num_entries) in translate_table()
704 ret = xt_check_table_hooks(newinfo, repl->valid_hooks); in translate_table()
[all …]
/Linux-v5.15/net/bridge/netfilter/
Debtables.c466 static int ebt_verify_pointers(const struct ebt_replace *repl, in ebt_verify_pointers() argument
469 unsigned int limit = repl->entries_size; in ebt_verify_pointers()
470 unsigned int valid_hooks = repl->valid_hooks; in ebt_verify_pointers()
477 newinfo->entries_size = repl->entries_size; in ebt_verify_pointers()
478 newinfo->nentries = repl->nentries; in ebt_verify_pointers()
490 if ((char __user *)repl->hook_entry[i] == in ebt_verify_pointers()
491 repl->entries + offset) in ebt_verify_pointers()
1008 static int do_replace_finish(struct net *net, struct ebt_replace *repl, in do_replace_finish() argument
1020 if (repl->num_counters) { in do_replace_finish()
1021 unsigned long size = repl->num_counters * sizeof(*counterstmp); in do_replace_finish()
[all …]
/Linux-v5.15/Documentation/sphinx/
Dautomarkup.py80 repl = [ ]
110 repl.append(nodes.Text(t[done:m.start()]))
116 repl.append(markup_func[m.re](docname, app, m))
120 repl.append(nodes.Text(t[done:]))
121 return repl
/Linux-v5.15/net/sctp/
Dsm_statefuns.c323 struct sctp_chunk *chunk = arg, *repl, *err_chunk; in sctp_sf_do_5_1B_init() local
439 repl = sctp_make_init_ack(new_asoc, chunk, GFP_ATOMIC, len); in sctp_sf_do_5_1B_init()
440 if (!repl) in sctp_sf_do_5_1B_init()
461 sctp_addto_chunk(repl, len, unk_param); in sctp_sf_do_5_1B_init()
467 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_5_1B_init()
709 struct sctp_chunk *repl; in sctp_sf_do_5_1D_ce() local
812 repl = sctp_make_cookie_ack(new_asoc, chunk); in sctp_sf_do_5_1D_ce()
813 if (!repl) in sctp_sf_do_5_1D_ce()
866 sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(repl)); in sctp_sf_do_5_1D_ce()
887 sctp_chunk_free(repl); in sctp_sf_do_5_1D_ce()
[all …]
Dsm_sideeffect.c89 struct sctp_chunk *repl; in sctp_do_ecn_ecne_work() local
119 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); in sctp_do_ecn_ecne_work()
124 return repl; in sctp_do_ecn_ecne_work()
/Linux-v5.15/include/linux/netfilter_ipv6/
Dip6_tables.h28 const struct ip6t_replace *repl,
/Linux-v5.15/include/linux/netfilter_arp/
Darp_tables.h53 const struct arpt_replace *repl,
/Linux-v5.15/include/linux/netfilter_ipv4/
Dip_tables.h26 const struct ipt_replace *repl,
/Linux-v5.15/drivers/md/
Draid10.c330 int repl = 0; in find_bio_disk() local
336 repl = 1; in find_bio_disk()
346 *replp = repl; in find_bio_disk()
434 int slot, repl; in raid10_end_write_request() local
441 dev = find_bio_disk(conf, r10_bio, bio, &slot, &repl); in raid10_end_write_request()
443 if (repl) in raid10_end_write_request()
447 repl = 0; in raid10_end_write_request()
454 if (repl) in raid10_end_write_request()
516 if (repl) in raid10_end_write_request()
1555 int slot, repl; in raid10_end_discard_request() local
[all …]
Draid1.c1715 struct md_rdev *repl = conf->mirrors[conf->raid_disks + i].rdev; in raid1_spare_active() local
1716 if (repl in raid1_spare_active()
1717 && !test_bit(Candidate, &repl->flags) in raid1_spare_active()
1718 && repl->recovery_offset == MaxSector in raid1_spare_active()
1719 && !test_bit(Faulty, &repl->flags) in raid1_spare_active()
1720 && !test_and_set_bit(In_sync, &repl->flags)) { in raid1_spare_active()
1855 struct md_rdev *repl = in raid1_remove_disk() local
1858 if (atomic_read(&repl->nr_pending)) { in raid1_remove_disk()
1869 clear_bit(Replacement, &repl->flags); in raid1_remove_disk()
1870 p->rdev = repl; in raid1_remove_disk()
/Linux-v5.15/include/net/netfilter/
Dnf_conntrack.h249 const struct nf_conntrack_tuple *repl,

12