Lines Matching defs:conf
47 struct tcf_em_text *conf = data;
51 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len))
54 if (conf->from_layer > conf->to_layer)
57 if (conf->from_layer == conf->to_layer &&
58 conf->from_offset > conf->to_offset)
62 ts_conf = textsearch_prepare(conf->algo, (u8 *) conf + sizeof(*conf),
63 conf->pattern_len, GFP_KERNEL, flags);
86 tm->from_offset = conf->from_offset;
87 tm->to_offset = conf->to_offset;
88 tm->from_layer = conf->from_layer;
89 tm->to_layer = conf->to_layer;
109 struct tcf_em_text conf;
111 strncpy(conf.algo, tm->config->ops->name, sizeof(conf.algo) - 1);
112 conf.from_offset = tm->from_offset;
113 conf.to_offset = tm->to_offset;
114 conf.from_layer = tm->from_layer;
115 conf.to_layer = tm->to_layer;
116 conf.pattern_len = textsearch_get_pattern_len(tm->config);
117 conf.pad = 0;
119 if (nla_put_nohdr(skb, sizeof(conf), &conf) < 0)
121 if (nla_append(skb, conf.pattern_len,