/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 113 struct ip_vs_wrr_mark *mark; in ip_vs_wrr_init_svc() local 118 mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL); in ip_vs_wrr_init_svc() 119 if (mark == NULL) in ip_vs_wrr_init_svc() 122 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 123 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 124 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 125 mark->cw = mark->mw; in ip_vs_wrr_init_svc() 126 svc->sched_data = mark; in ip_vs_wrr_init_svc() 134 struct ip_vs_wrr_mark *mark = svc->sched_data; in ip_vs_wrr_done_svc() local 139 kfree_rcu(mark, rcu_head); in ip_vs_wrr_done_svc() [all …]
|
/net/bridge/netfilter/ |
D | ebt_mark.c | 28 skb->mark = info->mark; in ebt_mark_tg() 30 skb->mark |= info->mark; in ebt_mark_tg() 32 skb->mark &= info->mark; in ebt_mark_tg() 34 skb->mark ^= info->mark; in ebt_mark_tg() 57 compat_ulong_t mark; member 66 kern->mark = user->mark; in mark_tg_compat_from_user() 75 if (put_user(kern->mark, &user->mark) || in mark_tg_compat_to_user()
|
D | ebt_mark_m.c | 21 return !!(skb->mark & info->mask) ^ info->invert; in ebt_mark_mt() 22 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in ebt_mark_mt() 41 compat_ulong_t mark, mask; member 50 kern->mark = user->mark; in mark_mt_compat_from_user() 61 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user()
|
D | Kconfig | 123 tristate "ebt: mark filter support" 125 This option adds the mark match, which allows matching frames based on 126 the 'nfmark' value in the frame. This can be set by the mark target. 127 This value is the same as the one used in the iptables mark match and 178 tristate "ebt: mark target support" 180 This option adds the mark target, which allows marking frames by 182 This value is the same as the one used in the iptables mark match and
|
/net/netfilter/ |
D | xt_connmark.c | 52 newmark = (ct->mark & ~info->ctmask) ^ info->ctmark; in connmark_tg() 53 if (ct->mark != newmark) { in connmark_tg() 54 ct->mark = newmark; in connmark_tg() 59 newmark = (ct->mark & ~info->ctmask) ^ in connmark_tg() 60 (skb->mark & info->nfmask); in connmark_tg() 61 if (ct->mark != newmark) { in connmark_tg() 62 ct->mark = newmark; in connmark_tg() 67 newmark = (skb->mark & ~info->nfmask) ^ in connmark_tg() 68 (ct->mark & info->ctmask); in connmark_tg() 69 skb->mark = newmark; in connmark_tg() [all …]
|
D | xt_mark.c | 33 skb->mark = (skb->mark & ~info->mask) ^ info->mark; in mark_tg() 42 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in mark_mt()
|
D | xt_TPROXY.c | 333 skb->mark = (skb->mark & ~mark_mask) ^ mark_value; in tproxy_tg4() 337 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 345 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg4() 499 skb->mark = (skb->mark & ~tgi->mark_mask) ^ tgi->mark_value; in tproxy_tg6_v1() 503 laddr, ntohs(lport), skb->mark); in tproxy_tg6_v1() 511 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg6_v1()
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipmark.c | 45 __u32 mark; member 56 ip1->mark == ip2->mark; in hash_ipmark4_data_equal() 64 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark4_data_list() 93 e.mark = skb->mark; in hash_ipmark4_kadt() 94 e.mark &= h->markmask; in hash_ipmark4_kadt() 126 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt() 127 e.mark &= h->markmask; in hash_ipmark4_uadt() 168 __u32 mark; member 179 ip1->mark == ip2->mark; in hash_ipmark6_data_equal() 187 nla_put_net32(skb, IPSET_ATTR_MARK, htonl(data->mark))) in hash_ipmark6_data_list() [all …]
|
/net/xfrm/ |
D | xfrm_state.c | 655 static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, in __xfrm_state_lookup() argument 670 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup() 679 static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark, in __xfrm_state_lookup_byaddr() argument 694 if ((mark & x->mark.m) != x->mark.v) in __xfrm_state_lookup_byaddr() 707 u32 mark = x->mark.v & x->mark.m; in __xfrm_state_locate() local 710 return __xfrm_state_lookup(net, mark, &x->id.daddr, in __xfrm_state_locate() 713 return __xfrm_state_lookup_byaddr(net, mark, in __xfrm_state_locate() 780 u32 mark = pol->mark.v & pol->mark.m; in xfrm_state_find() local 791 (mark & x->mark.m) == x->mark.v && in xfrm_state_find() 807 (mark & x->mark.m) == x->mark.v && in xfrm_state_find() [all …]
|
D | xfrm_user.c | 606 xfrm_mark_get(attrs, &x->mark); in xfrm_state_construct() 696 u32 mark = xfrm_mark_get(attrs, &m); in xfrm_user_state_lookup() local 700 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); in xfrm_user_state_lookup() 711 x = xfrm_state_lookup_byaddr(net, mark, in xfrm_user_state_lookup() 883 ret = xfrm_mark_put(skb, &x->mark); in copy_to_user_state_extra() 1271 u32 mark; in xfrm_alloc_userspi() local 1284 mark = xfrm_mark_get(attrs, &m); in xfrm_alloc_userspi() 1286 x = xfrm_find_acq_byseq(net, mark, p->info.seq); in xfrm_alloc_userspi() 1594 xfrm_mark_get(attrs, &xp->mark); in xfrm_policy_construct() 1743 err = xfrm_mark_put(skb, &xp->mark); in dump_one_policy() [all …]
|
/net/sched/ |
D | act_skbedit.c | 47 skb->mark = d->mark; in tcf_skbedit() 67 u32 flags = 0, *priority = NULL, *mark = NULL; in tcf_skbedit_init() local 93 mark = nla_data(tb[TCA_SKBEDIT_MARK]); in tcf_skbedit_init() 126 d->mark = *mark; in tcf_skbedit_init() 161 nla_put(skb, TCA_SKBEDIT_MARK, sizeof(d->mark), in tcf_skbedit_dump() 162 &d->mark)) in tcf_skbedit_dump()
|
D | act_connmark.c | 64 skb->mark = c->mark; in tcf_connmark() 84 skb->mark = c->mark; in tcf_connmark()
|
/net/ipv6/ |
D | ipcomp6.c | 71 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err() 105 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp6_tunnel_create() 128 u32 mark = x->mark.m & x->mark.v; in ipcomp6_tunnel_attach() local 132 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|
D | netfilter.c | 28 .flowi6_mark = skb->mark, in ip6_route_me_harder() 79 u_int32_t mark; member 92 rt_info->mark = skb->mark; in nf_ip6_saveroute() 105 skb->mark != rt_info->mark) in nf_ip6_reroute()
|
/net/ipv4/ |
D | ipcomp.c | 45 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err() 78 memcpy(&t->mark, &x->mark, sizeof(t->mark)); in ipcomp_tunnel_create() 103 u32 mark = x->mark.v & x->mark.m; in ipcomp_tunnel_attach() local 105 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
|
D | netfilter.c | 44 fl4.flowi4_mark = skb->mark; in ip_route_me_harder() 89 u_int32_t mark; member 103 rt_info->mark = skb->mark; in nf_ip_saveroute() 116 skb->mark == rt_info->mark && in nf_ip_reroute()
|
D | xfrm4_policy.c | 26 u32 mark) in __xfrm4_dst_lookup() argument 34 fl4->flowi4_mark = mark; in __xfrm4_dst_lookup() 50 u32 mark) in xfrm4_dst_lookup() argument 54 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark); in xfrm4_dst_lookup() 59 u32 mark) in xfrm4_get_saddr() argument 64 dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr, mark); in xfrm4_get_saddr() 124 fl4->flowi4_mark = skb->mark; in _decode_session4()
|
D | icmp.c | 402 u32 mark = IP4_REPLY_MARK(net, skb->mark); in icmp_reply() local 415 sk->sk_mark = mark; in icmp_reply() 431 fl4.flowi4_mark = mark; in icmp_reply() 485 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() argument 498 fl4->flowi4_mark = mark; in icmp_route_lookup() 604 u32 mark; in __icmp_send() local 706 mark = IP4_REPLY_MARK(net, skb_in->mark); in __icmp_send() 723 sk->sk_mark = mark; in __icmp_send() 730 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark, in __icmp_send()
|
/net/ipv4/netfilter/ |
D | nft_chain_route_ipv4.c | 30 u32 mark; in nf_route_table_hook() local 42 mark = skb->mark; in nf_route_table_hook() 54 skb->mark != mark || in nf_route_table_hook()
|
D | iptable_mangle.c | 46 u_int32_t mark; in ipt_mangle_out() local 55 mark = skb->mark; in ipt_mangle_out() 68 skb->mark != mark || in ipt_mangle_out()
|
/net/ipv6/netfilter/ |
D | nft_chain_route_ipv6.c | 33 u32 mark, flowlabel; in nf_route_table_hook() local 42 mark = skb->mark; in nf_route_table_hook() 52 skb->mark != mark || in nf_route_table_hook()
|
D | ip6table_mangle.c | 40 u_int32_t flowlabel, mark; in ip6t_mangle_out() local 54 mark = skb->mark; in ip6t_mangle_out() 65 skb->mark != mark || in ip6t_mangle_out()
|
/net/openvswitch/ |
D | conntrack.c | 52 struct md_mark mark; member 108 return ct ? ct->mark : 0; in ovs_ct_get_mark() 138 key->ct.mark = ovs_ct_get_mark(ct); in __ovs_ct_update_key() 185 nla_put_u32(skb, OVS_KEY_ATTR_CT_MARK, key->ct.mark)) in ovs_ct_put_key() 210 new_mark = ct_mark | (ct->mark & ~(mask)); in ovs_ct_set_mark() 211 if (ct->mark != new_mark) { in ovs_ct_set_mark() 212 ct->mark = new_mark; in ovs_ct_set_mark() 214 key->ct.mark = new_mark; in ovs_ct_set_mark() 547 if (info->mark.mask) { in ovs_ct_execute() 548 err = ovs_ct_set_mark(skb, key, info->mark.value, in ovs_ct_execute() [all …]
|
D | vport.c | 448 u32 mark; in ovs_vport_receive() local 450 mark = skb->mark; in ovs_vport_receive() 452 skb->mark = mark; in ovs_vport_receive()
|
/net/rxrpc/ |
D | ar-recvmsg.c | 134 skb->mark != RXRPC_SKB_MARK_DATA) { in rxrpc_recvmsg() 157 if (skb->mark != RXRPC_SKB_MARK_DATA) in rxrpc_recvmsg() 262 if (skb->mark == RXRPC_SKB_MARK_NEW_CALL) { in rxrpc_recvmsg() 281 switch (skb->mark) { in rxrpc_recvmsg() 387 ASSERTCMP(skb->mark, ==, RXRPC_SKB_MARK_DATA); in rxrpc_kernel_is_data_last() 404 ASSERTCMP(skb->mark, ==, RXRPC_SKB_MARK_REMOTE_ABORT); in rxrpc_kernel_get_abort_code()
|