Home | History | Annotate | Download | only in extensions

Lines Matching refs:einfo

36 	struct xt_sctp_info *einfo = (struct xt_sctp_info *)m->data;
39 einfo->flag_info[i].chunktype = -1;
157 parse_sctp_chunk(struct xt_sctp_info *einfo,
169 SCTP_CHUNKMAP_RESET(einfo->chunkmap);
172 SCTP_CHUNKMAP_SET_ALL(einfo->chunkmap);
177 SCTP_CHUNKMAP_RESET(einfo->chunkmap);
192 SCTP_CHUNKMAP_SET(einfo->chunkmap,
212 save_chunk_flag_info(einfo->flag_info,
213 &(einfo->flag_count), i, bit,
227 parse_sctp_chunks(struct xt_sctp_info *einfo,
233 einfo->chunk_match_type = SCTP_CHUNK_MATCH_ANY;
235 einfo->chunk_match_type = SCTP_CHUNK_MATCH_ALL;
237 einfo->chunk_match_type = SCTP_CHUNK_MATCH_ONLY;
243 SCTP_CHUNKMAP_RESET(einfo->chunkmap);
244 parse_sctp_chunk(einfo, chunks);
251 struct xt_sctp_info *einfo
259 einfo->flags |= XT_SCTP_SRC_PORTS;
261 parse_sctp_ports(optarg, einfo->spts);
263 einfo->invflags |= XT_SCTP_SRC_PORTS;
271 einfo->flags |= XT_SCTP_DEST_PORTS;
273 parse_sctp_ports(optarg, einfo->dpts);
275 einfo->invflags |= XT_SCTP_DEST_PORTS;
290 einfo->flags |= XT_SCTP_CHUNK_TYPES;
291 parse_sctp_chunks(einfo, optarg, argv[optind]);
293 einfo->invflags |= XT_SCTP_CHUNK_TYPES;
382 print_chunks(const struct xt_sctp_info *einfo, int numeric)
384 uint32_t chunk_match_type = einfo->chunk_match_type;
385 const struct xt_sctp_flag_info *flag_info = einfo->flag_info;
386 int flag_count = einfo->flag_count;
397 if (SCTP_CHUNKMAP_IS_CLEAR(einfo->chunkmap)) {
402 if (SCTP_CHUNKMAP_IS_ALL_SET(einfo->chunkmap)) {
409 if (SCTP_CHUNKMAP_IS_SET(einfo->chunkmap, i)) {
431 const struct xt_sctp_info *einfo =
436 if (einfo->flags & XT_SCTP_SRC_PORTS) {
437 print_ports("spt", einfo->spts[0], einfo->spts[1],
438 einfo->invflags & XT_SCTP_SRC_PORTS,
442 if (einfo->flags & XT_SCTP_DEST_PORTS) {
443 print_ports("dpt", einfo->dpts[0], einfo->dpts[1],
444 einfo->invflags & XT_SCTP_DEST_PORTS,
448 if (einfo->flags & XT_SCTP_CHUNK_TYPES) {
451 if (einfo->invflags & XT_SCTP_CHUNK_TYPES) {
454 print_chunks(einfo, numeric);
460 const struct xt_sctp_info *einfo =
463 if (einfo->flags & XT_SCTP_SRC_PORTS) {
464 if (einfo->invflags & XT_SCTP_SRC_PORTS)
466 if (einfo->spts[0] != einfo->spts[1])
468 einfo->spts[0], einfo->spts[1]);
470 printf(" --sport %u", einfo->spts[0]);
473 if (einfo->flags & XT_SCTP_DEST_PORTS) {
474 if (einfo->invflags & XT_SCTP_DEST_PORTS)
476 if (einfo->dpts[0] != einfo->dpts[1])
478 einfo->dpts[0], einfo->dpts[1]);
480 printf(" --dport %u", einfo->dpts[0]);
483 if (einfo->flags & XT_SCTP_CHUNK_TYPES) {
484 if (einfo->invflags & XT_SCTP_CHUNK_TYPES)
488 print_chunks(einfo, 0);