• Home
  • Raw
  • Download

Lines Matching full:info

180 	struct xt_connmark_tginfo1 *info = (void *)target->data;  in connmark_tg_init()  local
186 info->ctmask = UINT32_MAX; in connmark_tg_init()
187 info->nfmask = UINT32_MAX; in connmark_tg_init()
192 struct xt_connmark_tginfo2 *info; in connmark_tg_init_v2() local
195 info = (void *)target->data; in connmark_tg_init_v2()
198 info->shift_dir = D_SHIFT_LEFT; in connmark_tg_init_v2()
199 info->shift_bits = 0; in connmark_tg_init_v2()
227 struct xt_connmark_tginfo1 *info = cb->data; in connmark_tg_parse() local
232 info->mode = XT_CONNMARK_SET; in connmark_tg_parse()
233 info->ctmark = cb->val.mark; in connmark_tg_parse()
234 info->ctmask = cb->val.mask; in connmark_tg_parse()
237 info->mode = XT_CONNMARK_SET; in connmark_tg_parse()
238 info->ctmark = cb->val.mark; in connmark_tg_parse()
239 info->ctmask = cb->val.mark | cb->val.mask; in connmark_tg_parse()
242 info->mode = XT_CONNMARK_SET; in connmark_tg_parse()
243 info->ctmark = 0; in connmark_tg_parse()
244 info->ctmask = ~cb->val.u32; in connmark_tg_parse()
247 info->mode = XT_CONNMARK_SET; in connmark_tg_parse()
248 info->ctmark = cb->val.u32; in connmark_tg_parse()
249 info->ctmask = cb->val.u32; in connmark_tg_parse()
252 info->mode = XT_CONNMARK_SET; in connmark_tg_parse()
253 info->ctmark = cb->val.u32; in connmark_tg_parse()
254 info->ctmask = 0; in connmark_tg_parse()
257 info->mode = XT_CONNMARK_SAVE; in connmark_tg_parse()
260 info->mode = XT_CONNMARK_RESTORE; in connmark_tg_parse()
263 info->nfmask = info->ctmask = cb->val.u32; in connmark_tg_parse()
272 struct xt_connmark_tginfo2 *info = cb->data; in connmark_tg_parse_v2() local
277 info->mode = XT_CONNMARK_SET; in connmark_tg_parse_v2()
278 info->ctmark = cb->val.mark; in connmark_tg_parse_v2()
279 info->ctmask = cb->val.mask; in connmark_tg_parse_v2()
282 info->mode = XT_CONNMARK_SET; in connmark_tg_parse_v2()
283 info->ctmark = cb->val.mark; in connmark_tg_parse_v2()
284 info->ctmask = cb->val.mark | cb->val.mask; in connmark_tg_parse_v2()
287 info->mode = XT_CONNMARK_SET; in connmark_tg_parse_v2()
288 info->ctmark = 0; in connmark_tg_parse_v2()
289 info->ctmask = ~cb->val.u32; in connmark_tg_parse_v2()
292 info->mode = XT_CONNMARK_SET; in connmark_tg_parse_v2()
293 info->ctmark = cb->val.u32; in connmark_tg_parse_v2()
294 info->ctmask = cb->val.u32; in connmark_tg_parse_v2()
297 info->mode = XT_CONNMARK_SET; in connmark_tg_parse_v2()
298 info->ctmark = cb->val.u32; in connmark_tg_parse_v2()
299 info->ctmask = 0; in connmark_tg_parse_v2()
302 info->mode = XT_CONNMARK_SAVE; in connmark_tg_parse_v2()
305 info->mode = XT_CONNMARK_RESTORE; in connmark_tg_parse_v2()
308 info->nfmask = info->ctmask = cb->val.u32; in connmark_tg_parse_v2()
311 info->shift_dir = D_SHIFT_LEFT; in connmark_tg_parse_v2()
312 info->shift_bits = cb->val.u8; in connmark_tg_parse_v2()
315 info->shift_dir = D_SHIFT_RIGHT; in connmark_tg_parse_v2()
316 info->shift_bits = cb->val.u8; in connmark_tg_parse_v2()
372 const struct xt_connmark_tginfo1 *info = (const void *)target->data; in connmark_tg_print() local
374 switch (info->mode) { in connmark_tg_print()
376 if (info->ctmark == 0) in connmark_tg_print()
378 (unsigned int)(uint32_t)~info->ctmask); in connmark_tg_print()
379 else if (info->ctmark == info->ctmask) in connmark_tg_print()
380 printf(" CONNMARK or 0x%x", info->ctmark); in connmark_tg_print()
381 else if (info->ctmask == 0) in connmark_tg_print()
382 printf(" CONNMARK xor 0x%x", info->ctmark); in connmark_tg_print()
383 else if (info->ctmask == 0xFFFFFFFFU) in connmark_tg_print()
384 printf(" CONNMARK set 0x%x", info->ctmark); in connmark_tg_print()
387 info->ctmark, info->ctmask); in connmark_tg_print()
390 if (info->nfmask == UINT32_MAX && info->ctmask == UINT32_MAX) in connmark_tg_print()
392 else if (info->nfmask == info->ctmask) in connmark_tg_print()
393 printf(" CONNMARK save mask 0x%x", info->nfmask); in connmark_tg_print()
396 info->nfmask, info->ctmask); in connmark_tg_print()
399 if (info->ctmask == UINT32_MAX && info->nfmask == UINT32_MAX) in connmark_tg_print()
401 else if (info->ctmask == info->nfmask) in connmark_tg_print()
402 printf(" CONNMARK restore mask 0x%x", info->ctmask); in connmark_tg_print()
405 info->ctmask, info->nfmask); in connmark_tg_print()
418 const struct xt_connmark_tginfo2 *info = (const void *)target->data; in connmark_tg_print_v2() local
419 const char *shift_op = xt_connmark_shift_ops[info->shift_dir]; in connmark_tg_print_v2()
421 switch (info->mode) { in connmark_tg_print_v2()
423 if (info->ctmark == 0) in connmark_tg_print_v2()
425 (unsigned int)(uint32_t)~info->ctmask); in connmark_tg_print_v2()
426 else if (info->ctmark == info->ctmask) in connmark_tg_print_v2()
427 printf(" CONNMARK or 0x%x", info->ctmark); in connmark_tg_print_v2()
428 else if (info->ctmask == 0) in connmark_tg_print_v2()
429 printf(" CONNMARK xor 0x%x", info->ctmark); in connmark_tg_print_v2()
430 else if (info->ctmask == 0xFFFFFFFFU) in connmark_tg_print_v2()
431 printf(" CONNMARK set 0x%x", info->ctmark); in connmark_tg_print_v2()
434 info->ctmark, info->ctmask); in connmark_tg_print_v2()
437 if (info->nfmask == UINT32_MAX && info->ctmask == UINT32_MAX) in connmark_tg_print_v2()
439 else if (info->nfmask == info->ctmask) in connmark_tg_print_v2()
440 printf(" CONNMARK save mask 0x%x", info->nfmask); in connmark_tg_print_v2()
443 info->nfmask, info->ctmask); in connmark_tg_print_v2()
446 if (info->ctmask == UINT32_MAX && info->nfmask == UINT32_MAX) in connmark_tg_print_v2()
448 else if (info->ctmask == info->nfmask) in connmark_tg_print_v2()
449 printf(" CONNMARK restore mask 0x%x", info->ctmask); in connmark_tg_print_v2()
452 info->ctmask, info->nfmask); in connmark_tg_print_v2()
460 if (info->mode <= XT_CONNMARK_RESTORE && in connmark_tg_print_v2()
461 info->shift_bits != 0) { in connmark_tg_print_v2()
462 printf(" %s %u", shift_op, info->shift_bits); in connmark_tg_print_v2()
502 const struct xt_connmark_tginfo1 *info = (const void *)target->data; in connmark_tg_save() local
504 switch (info->mode) { in connmark_tg_save()
506 printf(" --set-xmark 0x%x/0x%x", info->ctmark, info->ctmask); in connmark_tg_save()
510 info->nfmask, info->ctmask); in connmark_tg_save()
514 info->nfmask, info->ctmask); in connmark_tg_save()
525 const struct xt_connmark_tginfo2 *info = (const void *)target->data; in connmark_tg_save_v2() local
526 const char *shift_op = xt_connmark_shift_ops[info->shift_dir]; in connmark_tg_save_v2()
528 switch (info->mode) { in connmark_tg_save_v2()
530 printf(" --set-xmark 0x%x/0x%x", info->ctmark, info->ctmask); in connmark_tg_save_v2()
534 info->nfmask, info->ctmask); in connmark_tg_save_v2()
538 info->nfmask, info->ctmask); in connmark_tg_save_v2()
545 if (info->mode <= XT_CONNMARK_RESTORE && in connmark_tg_save_v2()
546 info->shift_bits != 0) { in connmark_tg_save_v2()
547 printf(" --%s %u", shift_op, info->shift_bits); in connmark_tg_save_v2()
554 const struct xt_connmark_tginfo1 *info = in connmark_tg_xlate() local
557 switch (info->mode) { in connmark_tg_xlate()
560 if (info->ctmask == 0xFFFFFFFFU) in connmark_tg_xlate()
561 xt_xlate_add(xl, "0x%x ", info->ctmark); in connmark_tg_xlate()
562 else if (info->ctmark == 0) in connmark_tg_xlate()
563 xt_xlate_add(xl, "ct mark and 0x%x", ~info->ctmask); in connmark_tg_xlate()
564 else if (info->ctmark == info->ctmask) in connmark_tg_xlate()
566 info->ctmark); in connmark_tg_xlate()
567 else if (info->ctmask == 0) in connmark_tg_xlate()
569 info->ctmark); in connmark_tg_xlate()
572 info->ctmark, ~info->ctmask); in connmark_tg_xlate()
575 if (info->nfmask == info->ctmask && in connmark_tg_xlate()
576 info->nfmask == UINT32_MAX) in connmark_tg_xlate()
582 if (info->nfmask == info->ctmask && in connmark_tg_xlate()
583 info->nfmask == UINT32_MAX) in connmark_tg_xlate()
596 const struct xt_connmark_tginfo2 *info = in connmark_tg_xlate_v2() local
598 const char *shift_op = xt_connmark_shift_ops[info->shift_dir]; in connmark_tg_xlate_v2()
600 switch (info->mode) { in connmark_tg_xlate_v2()
603 if (info->ctmask == 0xFFFFFFFFU) in connmark_tg_xlate_v2()
604 xt_xlate_add(xl, "0x%x ", info->ctmark); in connmark_tg_xlate_v2()
605 else if (info->ctmark == 0) in connmark_tg_xlate_v2()
606 xt_xlate_add(xl, "ct mark and 0x%x", ~info->ctmask); in connmark_tg_xlate_v2()
607 else if (info->ctmark == info->ctmask) in connmark_tg_xlate_v2()
609 info->ctmark); in connmark_tg_xlate_v2()
610 else if (info->ctmask == 0) in connmark_tg_xlate_v2()
612 info->ctmark); in connmark_tg_xlate_v2()
615 info->ctmark, ~info->ctmask); in connmark_tg_xlate_v2()
619 if (!(info->nfmask == UINT32_MAX && in connmark_tg_xlate_v2()
620 info->ctmask == UINT32_MAX)) { in connmark_tg_xlate_v2()
621 if (info->nfmask == info->ctmask) in connmark_tg_xlate_v2()
622 xt_xlate_add(xl, " and 0x%x", info->nfmask); in connmark_tg_xlate_v2()
627 if (!(info->nfmask == UINT32_MAX && in connmark_tg_xlate_v2()
628 info->ctmask == UINT32_MAX)) { in connmark_tg_xlate_v2()
629 if (info->nfmask == info->ctmask) in connmark_tg_xlate_v2()
630 xt_xlate_add(xl, " and 0x%x", info->nfmask); in connmark_tg_xlate_v2()
635 if (info->mode <= XT_CONNMARK_RESTORE && in connmark_tg_xlate_v2()
636 info->shift_bits != 0) { in connmark_tg_xlate_v2()
637 xt_xlate_add(xl, " %s %u", shift_op, info->shift_bits); in connmark_tg_xlate_v2()