Lines Matching defs:conf
161 static void do_patch(priv_p conf, struct mbuf *m);
195 struct ng_patch_config *conf, *newconf;
224 conf = (struct ng_patch_config *)msg->data;
226 NG_PATCH_CONF_SIZE(conf->count)) {
231 for(i = 0; i < conf->count; i++) {
232 switch(conf->ops[i].length) {
246 conf->csum_flags &= CSUM_IP | CSUM_TCP | CSUM_UDP |
251 NG_PATCH_CONF_SIZE(conf->count),
253 newval = malloc(conf->count *
256 for(i = 0; i < conf->count; i++) {
257 switch (conf->ops[i].length) {
260 conf->ops[i].value;
264 conf->ops[i].value;
268 conf->ops[i].value;
272 conf->ops[i].value;
276 bcopy(conf, newconf,
277 NG_PATCH_CONF_SIZE(conf->count));
319 struct ng_patch_config *conf;
323 conf = privp->config;
325 for(i = 0; i < conf->count; i++) {
326 if (conf->ops[i].offset + conf->ops[i].length >
331 if (conf->ops[i].mode != NG_PATCH_MODE_SET) {
332 m_copydata(m, conf->ops[i].offset,
333 conf->ops[i].length, (caddr_t)&buf);
336 switch (conf->ops[i].length) {
338 switch (conf->ops[i].mode) {
376 switch (conf->ops[i].mode) {
415 switch (conf->ops[i].mode) {
454 switch (conf->ops[i].mode) {
493 m_copyback(m, conf->ops[i].offset, conf->ops[i].length,