Home
last modified time | relevance | path

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

/Linux-v5.10/net/ipv4/netfilter/
Darpt_mangle.c15 const struct arpt_mangle *mangle = par->targinfo; in target() local
28 if (mangle->flags & ARPT_MANGLE_SDEV) { in target()
32 memcpy(arpptr, mangle->src_devaddr, hln); in target()
35 if (mangle->flags & ARPT_MANGLE_SIP) { in target()
39 memcpy(arpptr, &mangle->u_s.src_ip, pln); in target()
42 if (mangle->flags & ARPT_MANGLE_TDEV) { in target()
46 memcpy(arpptr, mangle->tgt_devaddr, hln); in target()
49 if (mangle->flags & ARPT_MANGLE_TIP) { in target()
53 memcpy(arpptr, &mangle->u_t.tgt_ip, pln); in target()
55 return mangle->target; in target()
[all …]
DKconfig253 # mangle + specific targets
258 This option adds a `mangle' table to iptables: see the man page for
283 This option adds a `ECN' target, which can be used in the iptables mangle
/Linux-v5.10/scripts/
Dheaderdep.pl164 sub mangle { subroutine
179 mangle($header), $header;
188 mangle($header), mangle($dep->[1]);
/Linux-v5.10/fs/
Dproc_namespace.c84 static inline void mangle(struct seq_file *m, const char *s) in mangle() function
91 mangle(m, sb->s_type->name); in show_type()
94 mangle(m, sb->s_subtype); in show_type()
111 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt()
181 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_mountinfo()
211 mangle(m, r->mnt_devname); in show_vfsstat()
/Linux-v5.10/Documentation/networking/
Dtproxy.rst19 # iptables -t mangle -N DIVERT
20 # iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
21 # iptables -t mangle -A DIVERT -j MARK --set-mark 1
22 # iptables -t mangle -A DIVERT -j ACCEPT
69 # iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY \
Dnetdev-FAQ.rst291 get things done. Don't mangle whitespace, and as is common, don't
294 unpatched tree to confirm infrastructure didn't mangle it.
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/
Daction.c527 mask = ~act->mangle.mask; in nfp_fl_set_eth()
528 exact = act->mangle.val; in nfp_fl_set_eth()
564 mask = (__force __be32)~act->mangle.mask; in nfp_fl_set_ip4()
565 exact = (__force __be32)act->mangle.val; in nfp_fl_set_ip4()
705 mask = (__force __be32)~act->mangle.mask; in nfp_fl_set_ip6()
706 exact = (__force __be32)act->mangle.val; in nfp_fl_set_ip6()
745 mask = ~act->mangle.mask; in nfp_fl_set_tport()
746 exact = act->mangle.val; in nfp_fl_set_tport()
900 htype = act->mangle.htype; in nfp_fl_pedit()
901 offset = act->mangle.offset; in nfp_fl_pedit()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c543 htype = act->mangle.htype; in cxgb4_process_flow_actions()
544 mask = act->mangle.mask; in cxgb4_process_flow_actions()
545 val = act->mangle.val; in cxgb4_process_flow_actions()
546 offset = act->mangle.offset; in cxgb4_process_flow_actions()
586 htype = act->mangle.htype; in valid_pedit_action()
587 mask = act->mangle.mask; in valid_pedit_action()
588 offset = act->mangle.offset; in valid_pedit_action()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c171 enum flow_action_mangle_base htype = act->mangle.htype; in mlxsw_sp_flower_parse_actions()
172 __be32 be_mask = (__force __be32) act->mangle.mask; in mlxsw_sp_flower_parse_actions()
173 __be32 be_val = (__force __be32) act->mangle.val; in mlxsw_sp_flower_parse_actions()
174 u32 offset = act->mangle.offset; in mlxsw_sp_flower_parse_actions()
/Linux-v5.10/net/netfilter/
Dnf_flow_table_offload.c159 entry->mangle.htype = htype; in flow_offload_mangle()
160 entry->mangle.offset = offset; in flow_offload_mangle()
161 memcpy(&entry->mangle.mask, mask, sizeof(u32)); in flow_offload_mangle()
162 memcpy(&entry->mangle.val, value, sizeof(u32)); in flow_offload_mangle()
DKconfig726 The target allows you to create rules in the "mangle" table which alter
775 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
843 the "mangle" table which alter the Type Of Service field of an IPv4
870 The target allows you to create rules in the "raw" and "mangle" tables
1042 REDIRECT. It can only be used in the mangle table and is useful
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c231 offset = act->mangle.offset; in mlx5_tc_ct_rule_to_tuple_nat()
232 val = act->mangle.val; in mlx5_tc_ct_rule_to_tuple_nat()
233 switch (act->mangle.htype) { in mlx5_tc_ct_rule_to_tuple_nat()
495 u32 offset = act->mangle.offset, field; in mlx5_tc_ct_parse_mangle_to_mod_act()
497 switch (act->mangle.htype) { in mlx5_tc_ct_parse_mangle_to_mod_act()
557 MLX5_SET(set_action_in, modact, data, act->mangle.val); in mlx5_tc_ct_parse_mangle_to_mod_act()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2986 htype = act->mangle.htype; in parse_pedit_to_modify_hdr()
3000 mask = act->mangle.mask; in parse_pedit_to_modify_hdr()
3001 val = act->mangle.val; in parse_pedit_to_modify_hdr()
3002 offset = act->mangle.offset; in parse_pedit_to_modify_hdr()
3027 if (act->mangle.htype != FLOW_ACT_MANGLE_HDR_TYPE_ETH) { in parse_pedit_to_reformat()
3032 mask = ~act->mangle.mask; in parse_pedit_to_reformat()
3033 val = act->mangle.val; in parse_pedit_to_reformat()
3034 offset = act->mangle.offset; in parse_pedit_to_reformat()
3139 htype = act->mangle.htype; in is_action_keys_supported()
3140 offset = act->mangle.offset; in is_action_keys_supported()
[all …]
/Linux-v5.10/net/sched/
Dact_ct.c77 entry->mangle.htype = htype; in tcf_ct_add_mangle_action()
78 entry->mangle.mask = ~mask; in tcf_ct_add_mangle_action()
79 entry->mangle.offset = offset; in tcf_ct_add_mangle_action()
80 entry->mangle.val = val; in tcf_ct_add_mangle_action()
Dcls_api.c3644 entry->mangle.htype = tcf_pedit_htype(act, k); in tc_setup_flow_action()
3645 entry->mangle.mask = tcf_pedit_mask(act, k); in tc_setup_flow_action()
3646 entry->mangle.val = tcf_pedit_val(act, k); in tc_setup_flow_action()
3647 entry->mangle.offset = tcf_pedit_offset(act, k); in tc_setup_flow_action()
DKconfig838 Say Y here if you want to mangle the content of packets.
/Linux-v5.10/include/net/
Dflow_offload.h216 } mangle; member
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c191 offset = act->mangle.offset; in bnxt_tc_parse_pedit()
192 htype = act->mangle.htype; in bnxt_tc_parse_pedit()
193 mask = ~act->mangle.mask; in bnxt_tc_parse_pedit()
194 val = act->mangle.val; in bnxt_tc_parse_pedit()
/Linux-v5.10/tools/testing/selftests/wireguard/
Dnetns.sh322 n1 iptables -t mangle -I OUTPUT -j MARK --set-xmark 1
325 n1 iptables -t mangle -D OUTPUT -j MARK --set-xmark 1
/Linux-v5.10/net/ipv6/netfilter/
DKconfig230 This option adds a `mangle' table to iptables: see the man page for
/Linux-v5.10/Documentation/vm/
Dtranshuge.rst44 if any driver is going to mangle over the page structure of the tail
/Linux-v5.10/Documentation/process/
Demail-clients.rst277 Thunderbird is an Outlook clone that likes to mangle text, but there are ways
Dhowto.rst422 use a mail program that does not mangle spaces and tab characters. A
/Linux-v5.10/Documentation/kernel-hacking/
Dhacking.rst733 you create or mangle significantly. This is the first place people
/Linux-v5.10/
DCREDITS3958 D: netfilter: IPv6 mangle table