Lines Matching defs:label
66 static inline struct ip6_flowlabel *__fl_lookup(struct net *net, __be32 label)
70 for (fl=fl_ht[FL_HASH(label)]; fl; fl = fl->next) {
71 if (fl->label == label && net_eq(fl->fl_net, net))
77 static struct ip6_flowlabel *fl_lookup(struct net *net, __be32 label)
82 fl = __fl_lookup(net, label);
181 struct ip6_flowlabel *fl, __be32 label)
185 fl->label = label & IPV6_FLOWLABEL_MASK;
188 if (label == 0) {
190 fl->label = htonl(net_random())&IPV6_FLOWLABEL_MASK;
191 if (fl->label) {
192 lfl = __fl_lookup(net, fl->label);
204 * with the same label can only appear on another sock
206 lfl = __fl_lookup(net, fl->label);
215 fl->next = fl_ht[FL_HASH(fl->label)];
216 fl_ht[FL_HASH(fl->label)] = fl;
226 struct ip6_flowlabel * fl6_sock_lookup(struct sock *sk, __be32 label)
231 label &= IPV6_FLOWLABEL_MASK;
236 if (fl->label == label) {
493 if (sfl->fl->label == freq.flr_label) {
509 if (sfl->fl->label == freq.flr_label) {
540 if (sfl->fl->label == freq.flr_label) {
600 &fl->label, sizeof(fl->label))) {
707 (unsigned)ntohl(fl->label),