/linux/net/ipv4/netfilter/ |
A D | arpt_mangle.c | 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() 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 D | Kconfig | 259 # 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 D | mtk_ppe_offload.c | 69 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 D | headerdep.pl | 164 sub mangle { subroutine 179 mangle($header), $header; 188 mangle($header), mangle($dep->[1]);
|
/linux/fs/ |
A D | proc_namespace.c | 87 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 D | tproxy.rst | 19 # 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 D | netdev-FAQ.rst | 256 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 D | action.c | 528 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 D | conntrack.c | 258 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 D | cxgb4_tc_flower.c | 543 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 D | spectrum_flower.c | 172 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 D | amt.sh | 162 ip netns exec "${RELAY}" iptables -t mangle -I PREROUTING \ 164 ip netns exec "${RELAY}" ip6tables -t mangle -I PREROUTING \
|
A D | fib_tests.sh | 1732 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 D | smb_common.c | 23 #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 D | nf_flow_table_offload.c | 198 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 D | Kconfig | 772 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 D | en_tc.c | 2964 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 D | tc_ct.c | 273 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 D | conntrack_vrf.sh | 170 type filter hook postrouting priority mangle;
|
/linux/net/sched/ |
A D | act_ct.c | 77 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 D | bnxt_tc.c | 192 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 D | flow_offload.h | 217 } mangle; member
|
/linux/tools/testing/selftests/wireguard/ |
A D | netns.sh | 339 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 D | Kconfig | 233 This option adds a `mangle' table to iptables: see the man page for
|
/linux/Documentation/vm/ |
A D | transhuge.rst | 44 if any driver is going to mangle over the page structure of the tail
|