/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 | 371 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_label_size() local 373 if (!labels) in ctnetlink_label_size() 375 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size() 381 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_dump_labels() local 384 if (!labels) in ctnetlink_dump_labels() 389 if (labels->bits[i] != 0) in ctnetlink_dump_labels() 390 return nla_put(skb, CTA_LABELS, sizeof(labels->bits), in ctnetlink_dump_labels() 391 labels->bits); in ctnetlink_dump_labels() 393 } 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 | 160 bool "Connection tracking labels" 1183 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 | 1708 u8 labels, const u32 label[]) in nla_put_labels() argument 1714 nla = nla_reserve(skb, attrtype, labels*4); in nla_put_labels() 1720 for (i = labels - 1; i >= 0; i--) { in nla_put_labels() 1729 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, in nla_get_labels() argument 1805 *labels = nla_labels; in nla_get_labels() 2372 u32 labels[MAX_NEW_LABELS]; in mpls_getroute() local 2431 labels, extack) != 0) { in mpls_getroute() 2464 hdr[i] = mpls_entry_encode(labels[i], in mpls_getroute() 2533 struct mpls_route __rcu **labels = NULL, **old; in resize_platform_label_table() local 2538 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() 294 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key() 295 &output->ct.labels)) in ovs_ct_put_key() 371 const struct ovs_key_ct_labels *labels, in ovs_ct_init_labels() argument 397 (labels->ct_labels_32[i] in ovs_ct_init_labels() [all …]
|
D | conntrack.h | 82 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 | 187 act_ct_labels = entry->ct_metadata.labels; in tcf_ct_flow_table_add_action_meta() 569 bool labels; member 856 u32 *labels, in tcf_ct_act_set_labels() argument 860 size_t labels_sz = sizeof_field(struct tcf_ct_params, labels); in tcf_ct_act_set_labels() 865 nf_connlabels_replace(ct, labels, labels_m, 4); in tcf_ct_act_set_labels() 1027 tcf_ct_act_set_labels(ct, p->labels, p->labels_mask); in tcf_ct_act() 1192 if (!tn->labels) { in tcf_ct_fill_params() 1197 p->labels, TCA_CT_LABELS, in tcf_ct_fill_params() 1199 sizeof(p->labels)); in tcf_ct_fill_params() 1432 p->labels, TCA_CT_LABELS, in tcf_ct_dump() [all …]
|
/net/core/ |
D | pktgen.c | 348 __be32 labels[MAX_MPLS_LABELS]; member 614 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), in pktgen_if_show() 811 pkt_dev->labels[n] = htonl(tmp); in get_labels() 812 if (pkt_dev->labels[n] & MPLS_STACK_BOTTOM) in get_labels() 1530 "%08x%s", ntohl(pkt_dev->labels[n]), in pktgen_if_write() 2358 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM) in mod_cur_headers() 2359 pkt_dev->labels[i] = MPLS_STACK_BOTTOM | in mod_cur_headers() 2601 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push()
|