/net/netfilter/ |
D | nf_conntrack_labels.c | 34 struct nf_conn_labels *labels; in nf_connlabels_replace() local 39 labels = nf_ct_labels_find(ct); in nf_connlabels_replace() 40 if (!labels) in nf_connlabels_replace() 43 size = sizeof(labels->bits); in nf_connlabels_replace() 47 dst = (u32 *) labels->bits; in nf_connlabels_replace()
|
D | xt_connlabel.c | 24 struct nf_conn_labels *labels; in connlabel_mt() local 32 labels = nf_ct_labels_find(ct); in connlabel_mt() 33 if (!labels) in connlabel_mt() 36 if (test_bit(info->bit, labels->bits)) in connlabel_mt() 40 if (!test_and_set_bit(info->bit, labels->bits)) in connlabel_mt()
|
D | nf_conntrack_netlink.c | 376 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_label_size() local 378 if (!labels) in ctnetlink_label_size() 380 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size() 386 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_dump_labels() local 389 if (!labels) in ctnetlink_dump_labels() 394 if (labels->bits[i] != 0) in ctnetlink_dump_labels() 395 return nla_put(skb, CTA_LABELS, sizeof(labels->bits), in ctnetlink_dump_labels() 396 labels->bits); in ctnetlink_dump_labels() 398 } while (i < ARRAY_SIZE(labels->bits)); in ctnetlink_dump_labels()
|
D | nft_ct.c | 124 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nft_ct_get_eval() local 126 if (labels) in nft_ct_get_eval() 127 memcpy(dest, labels->bits, NF_CT_LABELS_MAX_SIZE); in nft_ct_get_eval()
|
D | Kconfig | 176 bool "Connection tracking labels" 1218 This match allows you to test and assign userspace-defined labels names
|
/net/mpls/ |
D | mpls_iptunnel.c | 33 return en->labels * sizeof(struct mpls_shim_hdr); in mpls_encap_size() 127 for (i = tun_encap_info->labels - 1; i >= 0; i--) { in mpls_xmit() 198 &tun_encap_info->labels, tun_encap_info->label, in mpls_build_state() 235 if (nla_put_labels(skb, MPLS_IPTUNNEL_DST, tun_encap_info->labels, in mpls_fill_encap_info() 256 nlsize = nla_total_size(tun_encap_info->labels * 4); in mpls_encap_nlsize() 270 if (a_hdr->labels != b_hdr->labels || in mpls_encap_cmp() 275 for (l = 0; l < a_hdr->labels; l++) in mpls_encap_cmp()
|
D | af_mpls.c | 1709 u8 labels, const u32 label[]) in nla_put_labels() argument 1715 nla = nla_reserve(skb, attrtype, labels*4); in nla_put_labels() 1721 for (i = labels - 1; i >= 0; i--) { in nla_put_labels() 1730 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, in nla_get_labels() argument 1806 *labels = nla_labels; in nla_get_labels() 2373 u32 labels[MAX_NEW_LABELS]; in mpls_getroute() local 2432 labels, extack) != 0) { in mpls_getroute() 2465 hdr[i] = mpls_entry_encode(labels[i], in mpls_getroute() 2534 struct mpls_route __rcu **labels = NULL, **old; in resize_platform_label_table() local 2539 labels = kvzalloc(size, GFP_KERNEL); in resize_platform_label_table() [all …]
|
D | internal.h | 193 int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels, 195 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels,
|
/net/openvswitch/ |
D | conntrack.c | 68 struct md_labels labels; member 101 static bool labels_nonzero(const struct ovs_key_ct_labels *labels); 165 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument 170 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels() 172 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels() 196 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key() 296 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key() 297 &output->ct.labels)) in ovs_ct_put_key() 373 const struct ovs_key_ct_labels *labels, in ovs_ct_init_labels() argument 399 (labels->ct_labels_32[i] in ovs_ct_init_labels() [all …]
|
D | conntrack.h | 84 memset(&key->ct.labels, 0, sizeof(key->ct.labels)); in ovs_ct_fill_key()
|
D | flow.h | 150 struct ovs_key_ct_labels labels; member
|
D | flow_netlink.c | 1233 SW_FLOW_KEY_MEMCPY(match, ct.labels, cl->ct_labels, in metadata_from_nlattrs()
|
/net/sched/ |
D | act_ct.c | 188 act_ct_labels = entry->ct_metadata.labels; in tcf_ct_flow_table_add_action_meta() 572 bool labels; member 868 u32 *labels, in tcf_ct_act_set_labels() argument 872 size_t labels_sz = sizeof_field(struct tcf_ct_params, labels); in tcf_ct_act_set_labels() 877 nf_connlabels_replace(ct, labels, labels_m, 4); in tcf_ct_act_set_labels() 1035 tcf_ct_act_set_labels(ct, p->labels, p->labels_mask); in tcf_ct_act() 1206 if (!tn->labels) { in tcf_ct_fill_params() 1211 p->labels, TCA_CT_LABELS, in tcf_ct_fill_params() 1213 sizeof(p->labels)); in tcf_ct_fill_params() 1445 p->labels, TCA_CT_LABELS, in tcf_ct_dump() [all …]
|
/net/core/ |
D | pktgen.c | 363 __be32 labels[MAX_MPLS_LABELS]; member 637 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), in pktgen_if_show() 902 pkt_dev->labels[n] = htonl(tmp); in get_labels() 903 if (pkt_dev->labels[n] & MPLS_STACK_BOTTOM) in get_labels() 1636 "%08x%s", ntohl(pkt_dev->labels[n]), in pktgen_if_write() 2464 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM) in mod_cur_headers() 2465 pkt_dev->labels[i] = MPLS_STACK_BOTTOM | in mod_cur_headers() 2741 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push()
|