Searched refs:labels (Results 1 – 4 of 4) sorted by relevance
/net/netfilter/ |
D | nf_conntrack_labels.c | 29 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nf_connlabel_match() local 31 if (!labels) in nf_connlabel_match() 34 return bit < label_bits(labels) && test_bit(bit, labels->bits); in nf_connlabel_match() 40 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nf_connlabel_set() local 42 if (!labels || bit >= label_bits(labels)) in nf_connlabel_set() 45 if (test_bit(bit, labels->bits)) in nf_connlabel_set() 48 if (!test_and_set_bit(bit, labels->bits)) in nf_connlabel_set() 70 struct nf_conn_labels *labels; in nf_connlabels_replace() local 74 labels = nf_ct_labels_find(ct); in nf_connlabels_replace() 75 if (!labels) in nf_connlabels_replace() [all …]
|
D | nf_conntrack_netlink.c | 330 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_label_size() local 332 if (!labels) in ctnetlink_label_size() 334 return nla_total_size(labels->words * sizeof(long)); in ctnetlink_label_size() 340 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_dump_labels() local 343 if (!labels) in ctnetlink_dump_labels() 346 len = labels->words * sizeof(long); in ctnetlink_dump_labels() 349 if (labels->bits[i] != 0) in ctnetlink_dump_labels() 350 return nla_put(skb, CTA_LABELS, len, labels->bits); in ctnetlink_dump_labels() 352 } while (i < labels->words); in ctnetlink_dump_labels()
|
D | Kconfig | 861 This match allows you to test and assign userspace-defined labels names
|
/net/core/ |
D | pktgen.c | 324 __be32 labels[MAX_MPLS_LABELS]; member 591 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), in pktgen_if_show() 819 pkt_dev->labels[n] = htonl(tmp); in get_labels() 820 if (pkt_dev->labels[n] & MPLS_STACK_BOTTOM) in get_labels() 1511 "%08x%s", ntohl(pkt_dev->labels[n]), in pktgen_if_write() 2332 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM) in mod_cur_headers() 2333 pkt_dev->labels[i] = MPLS_STACK_BOTTOM | in mod_cur_headers() 2552 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push()
|