/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 108 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() local 113 mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL); in ip_vs_wrr_init_svc() 114 if (mark == NULL) in ip_vs_wrr_init_svc() 117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 120 mark->cw = mark->mw; in ip_vs_wrr_init_svc() 121 svc->sched_data = mark; in ip_vs_wrr_init_svc() 129 struct ip_vs_wrr_mark *mark = svc->sched_data; in ip_vs_wrr_done_svc() local 134 kfree_rcu(mark, rcu_head); in ip_vs_wrr_done_svc() [all …]
|
/net/bridge/netfilter/ |
D | ebt_mark.c | 29 skb->mark = info->mark; in ebt_mark_tg() 31 skb->mark |= info->mark; in ebt_mark_tg() 33 skb->mark &= info->mark; in ebt_mark_tg() 35 skb->mark ^= info->mark; in ebt_mark_tg() 58 compat_ulong_t mark; member 67 kern->mark = user->mark; in mark_tg_compat_from_user() 76 if (put_user(kern->mark, &user->mark) || in mark_tg_compat_to_user()
|
D | ebt_mark_m.c | 22 return !!(skb->mark & info->mask) ^ info->invert; in ebt_mark_mt() 23 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in ebt_mark_mt() 42 compat_ulong_t mark, mask; member 51 kern->mark = user->mark; in mark_mt_compat_from_user() 62 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user()
|
D | Kconfig | 140 tristate "ebt: mark filter support" 142 This option adds the mark match, which allows matching frames based on 143 the 'nfmark' value in the frame. This can be set by the mark target. 144 This value is the same as the one used in the iptables mark match and 195 tristate "ebt: mark target support" 197 This option adds the mark target, which allows marking frames by 199 This value is the same as the one used in the iptables mark match and
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipmark.c | 40 __u32 mark; member 51 ip1->mark == ip2->mark; in hash_ipmark4_data_equal() 59 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark4_data_list() 88 e.mark = skb->mark; in hash_ipmark4_kadt() 89 e.mark &= h->markmask; in hash_ipmark4_kadt() 121 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt() 122 e.mark &= h->markmask; in hash_ipmark4_uadt() 163 __u32 mark; member 174 ip1->mark == ip2->mark; in hash_ipmark6_data_equal() 182 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark6_data_list() [all …]
|
/net/netfilter/ |
D | xt_connmark.c | 40 newmark = (ct->mark & ~info->ctmask) ^ info->ctmark; in connmark_tg_shift() 46 if (ct->mark != newmark) { in connmark_tg_shift() 47 ct->mark = newmark; in connmark_tg_shift() 52 new_targetmark = (skb->mark & info->nfmask); in connmark_tg_shift() 58 newmark = (ct->mark & ~info->ctmask) ^ in connmark_tg_shift() 60 if (ct->mark != newmark) { in connmark_tg_shift() 61 ct->mark = newmark; in connmark_tg_shift() 66 new_targetmark = (ct->mark & info->ctmask); in connmark_tg_shift() 72 newmark = (skb->mark & ~info->nfmask) ^ in connmark_tg_shift() 74 skb->mark = newmark; in connmark_tg_shift() [all …]
|
D | nft_chain_route.c | 24 u32 mark; in nf_route_table_hook4() local 31 mark = skb->mark; in nf_route_table_hook4() 43 skb->mark != mark || in nf_route_table_hook4() 71 u32 mark, flowlabel; in nf_route_table_hook6() local 82 mark = skb->mark; in nf_route_table_hook6() 92 skb->mark != mark || in nf_route_table_hook6()
|
D | xt_mark.c | 30 skb->mark = (skb->mark & ~info->mask) ^ info->mark; in mark_tg() 39 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in mark_mt()
|
D | xt_TPROXY.c | 76 skb->mark = (skb->mark & ~mark_mask) ^ mark_value; in tproxy_tg4() 80 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 88 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg4() 170 skb->mark = (skb->mark & ~tgi->mark_mask) ^ tgi->mark_value; in tproxy_tg6_v1() 174 laddr, ntohs(lport), skb->mark); in tproxy_tg6_v1() 182 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg6_v1()
|
D | nf_queue.c | 140 rt_info->mark = skb->mark; in nf_ip_saveroute() 154 rt_info->mark = skb->mark; in nf_ip6_saveroute()
|
/net/ipv6/ |
D | ipcomp6.c | 59 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err() 93 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp6_tunnel_create() 116 u32 mark = x->mark.m & x->mark.v; in ipcomp6_tunnel_attach() local 120 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|
D | xfrm6_policy.c | 29 u32 mark) in xfrm6_dst_lookup() argument 38 fl6.flowi6_mark = mark; in xfrm6_dst_lookup() 56 u32 mark) in xfrm6_get_saddr() argument 61 dst = xfrm6_dst_lookup(net, 0, oif, NULL, daddr, mark); in xfrm6_get_saddr()
|
/net/ipv4/ |
D | ipcomp.c | 41 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err() 74 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp_tunnel_create() 99 u32 mark = x->mark.v & x->mark.m; in ipcomp_tunnel_attach() local 101 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
|
D | xfrm4_policy.c | 24 u32 mark) in __xfrm4_dst_lookup() argument 32 fl4->flowi4_mark = mark; in __xfrm4_dst_lookup() 48 u32 mark) in xfrm4_dst_lookup() argument 52 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark); in xfrm4_dst_lookup() 57 u32 mark) in xfrm4_get_saddr() argument 62 dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr, mark); in xfrm4_get_saddr()
|
D | icmp.c | 407 u32 mark = IP4_REPLY_MARK(net, skb->mark); in icmp_reply() local 430 sk->sk_mark = mark; in icmp_reply() 442 fl4.flowi4_mark = mark; in icmp_reply() 464 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() argument 476 fl4->flowi4_mark = mark; in icmp_route_lookup() 580 u32 mark; in __icmp_send() local 695 mark = IP4_REPLY_MARK(net, skb_in->mark); in __icmp_send() 712 sk->sk_mark = mark; in __icmp_send() 717 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark, in __icmp_send()
|
/net/xfrm/ |
D | xfrm_state.c | 927 static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, in __xfrm_state_lookup() argument 942 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup() 952 static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark, in __xfrm_state_lookup_byaddr() argument 967 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup_byaddr() 981 u32 mark = x->mark.v & x->mark.m; in __xfrm_state_locate() local 984 return __xfrm_state_lookup(net, mark, &x->id.daddr, in __xfrm_state_locate() 987 return __xfrm_state_lookup_byaddr(net, mark, in __xfrm_state_locate() 1051 u32 mark = pol->mark.v & pol->mark.m; in xfrm_state_find() local 1065 (mark & x->mark.m) == x->mark.v && in xfrm_state_find() 1082 (mark & x->mark.m) == x->mark.v && in xfrm_state_find() [all …]
|
D | xfrm_user.c | 619 xfrm_mark_get(attrs, &x->mark); in xfrm_state_construct() 723 u32 mark = xfrm_mark_get(attrs, &m); in xfrm_user_state_lookup() local 727 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); in xfrm_user_state_lookup() 738 x = xfrm_state_lookup_byaddr(net, mark, in xfrm_user_state_lookup() 940 ret = xfrm_mark_put(skb, &x->mark); in copy_to_user_state_extra() 1314 u32 mark; in xfrm_alloc_userspi() local 1328 mark = xfrm_mark_get(attrs, &m); in xfrm_alloc_userspi() 1334 x = xfrm_find_acq_byseq(net, mark, p->info.seq); in xfrm_alloc_userspi() 1631 xfrm_mark_get(attrs, &xp->mark); in xfrm_policy_construct() 1782 err = xfrm_mark_put(skb, &xp->mark); in dump_one_policy() [all …]
|
/net/ipv6/netfilter/ |
D | ip6table_mangle.c | 40 u_int32_t flowlabel, mark; in ip6t_mangle_out() local 46 mark = skb->mark; in ip6t_mangle_out() 57 skb->mark != mark || in ip6t_mangle_out()
|
/net/ipv4/netfilter/ |
D | iptable_mangle.c | 46 u_int32_t mark; in ipt_mangle_out() local 50 mark = skb->mark; in ipt_mangle_out() 63 skb->mark != mark || in ipt_mangle_out()
|
/net/sched/ |
D | act_skbedit.c | 64 skb->mark &= ~params->mask; in tcf_skbedit_act() 65 skb->mark |= params->mark & params->mask; in tcf_skbedit_act() 98 u32 flags = 0, *priority = NULL, *mark = NULL, *mask = NULL; in tcf_skbedit_init() local 134 mark = nla_data(tb[TCA_SKBEDIT_MARK]); in tcf_skbedit_init() 199 params_new->mark = *mark; in tcf_skbedit_init() 256 nla_put_u32(skb, TCA_SKBEDIT_MARK, params->mark)) in tcf_skbedit_dump()
|
D | act_meta_mark.c | 24 u32 ifemark = skb->mark; in skbmark_encode() 33 skb->mark = ntohl(ifemark); in skbmark_decode() 39 return ife_check_meta_u32(skb->mark, e); in skbmark_check()
|
D | act_ct.c | 293 static void tcf_ct_act_set_mark(struct nf_conn *ct, u32 mark, u32 mask) in tcf_ct_act_set_mark() argument 301 new_mark = mark | (ct->mark & ~(mask)); in tcf_ct_act_set_mark() 302 if (ct->mark != new_mark) { in tcf_ct_act_set_mark() 303 ct->mark = new_mark; in tcf_ct_act_set_mark() 466 tcf_ct_act_set_mark(ct, p->mark, p->mark_mask); in tcf_ct_act() 618 &p->mark, TCA_CT_MARK, in tcf_ct_fill_params() 620 sizeof(p->mark)); in tcf_ct_fill_params() 859 &p->mark, TCA_CT_MARK, in tcf_ct_dump() 861 sizeof(p->mark))) in tcf_ct_dump()
|
D | act_connmark.c | 62 skb->mark = c->mark; in tcf_connmark_act() 82 skb->mark = c->mark; in tcf_connmark_act()
|
/net/openvswitch/ |
D | vport.c | 434 u32 mark; in ovs_vport_receive() local 436 mark = skb->mark; in ovs_vport_receive() 438 skb->mark = mark; in ovs_vport_receive()
|
/net/rxrpc/ |
D | security.c | 125 skb->mark = RXRPC_SKB_MARK_REJECT_ABORT; in rxrpc_look_up_server_security() 137 skb->mark = RXRPC_SKB_MARK_REJECT_ABORT; in rxrpc_look_up_server_security() 149 skb->mark = RXRPC_SKB_MARK_REJECT_ABORT; in rxrpc_look_up_server_security()
|