Home
last modified time | relevance | path

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

12

/linux/net/ipv4/netfilter/
A Darpt_mangle.c28 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()
49 if (mangle->flags & ARPT_MANGLE_TIP) { in target()
55 return mangle->target; in target()
62 if (mangle->flags & ~ARPT_MANGLE_MASK || in checkentry()
63 !(mangle->flags & ARPT_MANGLE_MASK)) in checkentry()
66 if (mangle->target != NF_DROP && mangle->target != NF_ACCEPT && in checkentry()
[all …]
A DKconfig259 # mangle + specific targets
264 This option adds a `mangle' table to iptables: see the man page for
289 This option adds a `ECN' target, which can be used in the iptables mangle
/linux/drivers/net/ethernet/mediatek/
A Dmtk_ppe_offload.c69 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth()
70 const void *src = &act->mangle.val; in mtk_flow_offload_mangle_eth()
72 if (act->mangle.offset > 8) in mtk_flow_offload_mangle_eth()
75 if (act->mangle.mask == 0xffff) { in mtk_flow_offload_mangle_eth()
80 memcpy(dest, src, act->mangle.mask ? 2 : 4); in mtk_flow_offload_mangle_eth()
88 u32 val = ntohl(act->mangle.val); in mtk_flow_mangle_ports()
90 switch (act->mangle.offset) { in mtk_flow_mangle_ports()
92 if (act->mangle.mask == ~htonl(0xffff)) in mtk_flow_mangle_ports()
113 switch (act->mangle.offset) { in mtk_flow_mangle_ipv4()
124 memcpy(dest, &act->mangle.val, sizeof(u32)); in mtk_flow_mangle_ipv4()
[all …]
/linux/scripts/
A Dheaderdep.pl164 sub mangle { subroutine
179 mangle($header), $header;
188 mangle($header), mangle($dep->[1]);
/linux/fs/
A Dproc_namespace.c87 static inline void mangle(struct seq_file *m, const char *s) in mangle() function
94 mangle(m, sb->s_type->name); in show_type()
97 mangle(m, sb->s_subtype); in show_type()
114 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt()
184 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_mountinfo()
214 mangle(m, r->mnt_devname); in show_vfsstat()
/linux/Documentation/networking/
A 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 \
A Dnetdev-FAQ.rst256 get things done. Don't mangle whitespace, and as is common, don't
259 unpatched tree to confirm infrastructure didn't mangle it.
/linux/drivers/net/ethernet/netronome/nfp/flower/
A Daction.c528 mask = ~act->mangle.mask; in nfp_fl_set_eth()
529 exact = act->mangle.val; in nfp_fl_set_eth()
565 mask = (__force __be32)~act->mangle.mask; in nfp_fl_set_ip4()
566 exact = (__force __be32)act->mangle.val; in nfp_fl_set_ip4()
706 mask = (__force __be32)~act->mangle.mask; in nfp_fl_set_ip6()
707 exact = (__force __be32)act->mangle.val; in nfp_fl_set_ip6()
746 mask = ~act->mangle.mask; in nfp_fl_set_tport()
747 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()
A Dconntrack.c258 enum flow_action_mangle_base htype = a_in->mangle.htype; in nfp_ct_check_mangle_merge()
259 u32 offset = a_in->mangle.offset; in nfp_ct_check_mangle_merge()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A 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/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_flower.c172 enum flow_action_mangle_base htype = act->mangle.htype; in mlxsw_sp_flower_parse_actions()
173 __be32 be_mask = (__force __be32) act->mangle.mask; in mlxsw_sp_flower_parse_actions()
174 __be32 be_val = (__force __be32) act->mangle.val; in mlxsw_sp_flower_parse_actions()
175 u32 offset = act->mangle.offset; in mlxsw_sp_flower_parse_actions()
/linux/tools/testing/selftests/net/
A Damt.sh162 ip netns exec "${RELAY}" iptables -t mangle -I PREROUTING \
164 ip netns exec "${RELAY}" ip6tables -t mangle -I PREROUTING \
A Dfib_tests.sh1732 iptables -t mangle -L OUTPUT &> /dev/null
1743 ip6tables -t mangle -L OUTPUT &> /dev/null
1784 $NS_EXEC iptables -t mangle -A OUTPUT -j MARK --set-mark 1
1791 $NS_EXEC iptables -t mangle -D OUTPUT -j MARK --set-mark 1
1842 $NS_EXEC ip6tables -t mangle -A OUTPUT -j MARK --set-mark 1
1849 $NS_EXEC ip6tables -t mangle -D OUTPUT -j MARK --set-mark 1
/linux/fs/ksmbd/
A Dsmb_common.c23 #define mangle(V) ((char)(basechars[(V) % MANGLE_BASE])) macro
414 out[baselen + 1] = mangle(csum / MANGLE_BASE); in ksmbd_extract_shortname()
415 out[baselen + 2] = mangle(csum); in ksmbd_extract_shortname()
/linux/net/netfilter/
A Dnf_flow_table_offload.c198 entry->mangle.htype = htype; in flow_offload_mangle()
199 entry->mangle.offset = offset; in flow_offload_mangle()
200 memcpy(&entry->mangle.mask, mask, sizeof(u32)); in flow_offload_mangle()
201 memcpy(&entry->mangle.val, value, sizeof(u32)); in flow_offload_mangle()
A DKconfig772 The target allows you to create rules in the "mangle" table which alter
821 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
889 the "mangle" table which alter the Type Of Service field of an IPv4
916 The target allows you to create rules in the "raw" and "mangle" tables
1087 REDIRECT. It can only be used in the mangle table and is useful
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_tc.c2964 htype = act->mangle.htype; in parse_pedit_to_modify_hdr()
2978 mask = act->mangle.mask; in parse_pedit_to_modify_hdr()
2979 val = act->mangle.val; in parse_pedit_to_modify_hdr()
2980 offset = act->mangle.offset; in parse_pedit_to_modify_hdr()
3011 mask = ~act->mangle.mask; in parse_pedit_to_reformat()
3012 val = act->mangle.val; in parse_pedit_to_reformat()
3013 offset = act->mangle.offset; in parse_pedit_to_reformat()
3118 htype = act->mangle.htype; in is_action_keys_supported()
3119 offset = act->mangle.offset; in is_action_keys_supported()
3120 mask = ~act->mangle.mask; in is_action_keys_supported()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_ct.c273 offset = act->mangle.offset; in mlx5_tc_ct_rule_to_tuple_nat()
274 val = act->mangle.val; in mlx5_tc_ct_rule_to_tuple_nat()
275 switch (act->mangle.htype) { in mlx5_tc_ct_rule_to_tuple_nat()
537 u32 offset = act->mangle.offset, field; in mlx5_tc_ct_parse_mangle_to_mod_act()
539 switch (act->mangle.htype) { in mlx5_tc_ct_parse_mangle_to_mod_act()
599 MLX5_SET(set_action_in, modact, data, act->mangle.val); in mlx5_tc_ct_parse_mangle_to_mod_act()
/linux/tools/testing/selftests/netfilter/
A Dconntrack_vrf.sh170 type filter hook postrouting priority mangle;
/linux/net/sched/
A 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()
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_tc.c192 offset = act->mangle.offset; in bnxt_tc_parse_pedit()
193 htype = act->mangle.htype; in bnxt_tc_parse_pedit()
194 mask = ~act->mangle.mask; in bnxt_tc_parse_pedit()
195 val = act->mangle.val; in bnxt_tc_parse_pedit()
/linux/include/net/
A Dflow_offload.h217 } mangle; member
/linux/tools/testing/selftests/wireguard/
A Dnetns.sh339 n1 iptables -t mangle -I OUTPUT -j MARK --set-xmark 1
342 n1 iptables -t mangle -D OUTPUT -j MARK --set-xmark 1
/linux/net/ipv6/netfilter/
A DKconfig233 This option adds a `mangle' table to iptables: see the man page for
/linux/Documentation/vm/
A Dtranshuge.rst44 if any driver is going to mangle over the page structure of the tail

Completed in 56 milliseconds

12