Lines Matching refs:einfo

36 	struct xt_sctp_info *einfo = (struct xt_sctp_info *)m->data;  in sctp_init()  local
39 einfo->flag_info[i].chunktype = -1; in sctp_init()
157 parse_sctp_chunk(struct xt_sctp_info *einfo, in parse_sctp_chunk() argument
169 SCTP_CHUNKMAP_RESET(einfo->chunkmap); in parse_sctp_chunk()
172 SCTP_CHUNKMAP_SET_ALL(einfo->chunkmap); in parse_sctp_chunk()
177 SCTP_CHUNKMAP_RESET(einfo->chunkmap); in parse_sctp_chunk()
192 SCTP_CHUNKMAP_SET(einfo->chunkmap, in parse_sctp_chunk()
212 save_chunk_flag_info(einfo->flag_info, in parse_sctp_chunk()
213 &(einfo->flag_count), i, bit, in parse_sctp_chunk()
227 parse_sctp_chunks(struct xt_sctp_info *einfo, in parse_sctp_chunks() argument
233 einfo->chunk_match_type = SCTP_CHUNK_MATCH_ANY; in parse_sctp_chunks()
235 einfo->chunk_match_type = SCTP_CHUNK_MATCH_ALL; in parse_sctp_chunks()
237 einfo->chunk_match_type = SCTP_CHUNK_MATCH_ONLY; in parse_sctp_chunks()
243 SCTP_CHUNKMAP_RESET(einfo->chunkmap); in parse_sctp_chunks()
244 parse_sctp_chunk(einfo, chunks); in parse_sctp_chunks()
251 struct xt_sctp_info *einfo in sctp_parse() local
259 einfo->flags |= XT_SCTP_SRC_PORTS; in sctp_parse()
260 parse_sctp_ports(optarg, einfo->spts); in sctp_parse()
262 einfo->invflags |= XT_SCTP_SRC_PORTS; in sctp_parse()
270 einfo->flags |= XT_SCTP_DEST_PORTS; in sctp_parse()
271 parse_sctp_ports(optarg, einfo->dpts); in sctp_parse()
273 einfo->invflags |= XT_SCTP_DEST_PORTS; in sctp_parse()
286 einfo->flags |= XT_SCTP_CHUNK_TYPES; in sctp_parse()
287 parse_sctp_chunks(einfo, optarg, argv[optind]); in sctp_parse()
289 einfo->invflags |= XT_SCTP_CHUNK_TYPES; in sctp_parse()
378 print_chunks(const struct xt_sctp_info *einfo, int numeric) in print_chunks() argument
380 uint32_t chunk_match_type = einfo->chunk_match_type; in print_chunks()
381 const struct xt_sctp_flag_info *flag_info = einfo->flag_info; in print_chunks()
382 int flag_count = einfo->flag_count; in print_chunks()
393 if (SCTP_CHUNKMAP_IS_CLEAR(einfo->chunkmap)) { in print_chunks()
398 if (SCTP_CHUNKMAP_IS_ALL_SET(einfo->chunkmap)) { in print_chunks()
405 if (SCTP_CHUNKMAP_IS_SET(einfo->chunkmap, i)) { in print_chunks()
427 const struct xt_sctp_info *einfo = in sctp_print() local
432 if (einfo->flags & XT_SCTP_SRC_PORTS) { in sctp_print()
433 print_ports("spt", einfo->spts[0], einfo->spts[1], in sctp_print()
434 einfo->invflags & XT_SCTP_SRC_PORTS, in sctp_print()
438 if (einfo->flags & XT_SCTP_DEST_PORTS) { in sctp_print()
439 print_ports("dpt", einfo->dpts[0], einfo->dpts[1], in sctp_print()
440 einfo->invflags & XT_SCTP_DEST_PORTS, in sctp_print()
444 if (einfo->flags & XT_SCTP_CHUNK_TYPES) { in sctp_print()
447 if (einfo->invflags & XT_SCTP_CHUNK_TYPES) { in sctp_print()
450 print_chunks(einfo, numeric); in sctp_print()
456 const struct xt_sctp_info *einfo = in sctp_save() local
459 if (einfo->flags & XT_SCTP_SRC_PORTS) { in sctp_save()
460 if (einfo->invflags & XT_SCTP_SRC_PORTS) in sctp_save()
462 if (einfo->spts[0] != einfo->spts[1]) in sctp_save()
464 einfo->spts[0], einfo->spts[1]); in sctp_save()
466 printf(" --sport %u", einfo->spts[0]); in sctp_save()
469 if (einfo->flags & XT_SCTP_DEST_PORTS) { in sctp_save()
470 if (einfo->invflags & XT_SCTP_DEST_PORTS) in sctp_save()
472 if (einfo->dpts[0] != einfo->dpts[1]) in sctp_save()
474 einfo->dpts[0], einfo->dpts[1]); in sctp_save()
476 printf(" --dport %u", einfo->dpts[0]); in sctp_save()
479 if (einfo->flags & XT_SCTP_CHUNK_TYPES) { in sctp_save()
480 if (einfo->invflags & XT_SCTP_CHUNK_TYPES) in sctp_save()
484 print_chunks(einfo, 0); in sctp_save()
491 const struct xt_sctp_info *einfo = in sctp_xlate() local
495 if (!einfo->flags) in sctp_xlate()
500 if (einfo->flags & XT_SCTP_SRC_PORTS) { in sctp_xlate()
501 if (einfo->spts[0] != einfo->spts[1]) in sctp_xlate()
503 einfo->invflags & XT_SCTP_SRC_PORTS ? " !=" : "", in sctp_xlate()
504 einfo->spts[0], einfo->spts[1]); in sctp_xlate()
507 einfo->invflags & XT_SCTP_SRC_PORTS ? " !=" : "", in sctp_xlate()
508 einfo->spts[0]); in sctp_xlate()
512 if (einfo->flags & XT_SCTP_DEST_PORTS) { in sctp_xlate()
513 if (einfo->dpts[0] != einfo->dpts[1]) in sctp_xlate()
515 einfo->invflags & XT_SCTP_DEST_PORTS ? " !=" : "", in sctp_xlate()
516 einfo->dpts[0], einfo->dpts[1]); in sctp_xlate()
519 einfo->invflags & XT_SCTP_DEST_PORTS ? " !=" : "", in sctp_xlate()
520 einfo->dpts[0]); in sctp_xlate()