• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iptables-1.4.12.1/extensions/

Lines Matching defs: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;
260 parse_sctp_ports(optarg, einfo->spts);
262 einfo->invflags |= XT_SCTP_SRC_PORTS;
270 einfo->flags |= XT_SCTP_DEST_PORTS;
271 parse_sctp_ports(optarg, einfo->dpts);
273 einfo->invflags |= XT_SCTP_DEST_PORTS;
286 einfo->flags |= XT_SCTP_CHUNK_TYPES;
287 parse_sctp_chunks(einfo, optarg, argv[optind]);
289 einfo->invflags |= XT_SCTP_CHUNK_TYPES;
378 print_chunks(const struct xt_sctp_info *einfo, int numeric)
380 uint32_t chunk_match_type = einfo->chunk_match_type;
381 const struct xt_sctp_flag_info *flag_info = einfo->flag_info;
382 int flag_count = einfo->flag_count;
393 if (SCTP_CHUNKMAP_IS_CLEAR(einfo->chunkmap)) {
398 if (SCTP_CHUNKMAP_IS_ALL_SET(einfo->chunkmap)) {
405 if (SCTP_CHUNKMAP_IS_SET(einfo->chunkmap, i)) {
427 const struct xt_sctp_info *einfo =
432 if (einfo->flags & XT_SCTP_SRC_PORTS) {
433 print_ports("spt", einfo->spts[0], einfo->spts[1],
434 einfo->invflags & XT_SCTP_SRC_PORTS,
438 if (einfo->flags & XT_SCTP_DEST_PORTS) {
439 print_ports("dpt", einfo->dpts[0], einfo->dpts[1],
440 einfo->invflags & XT_SCTP_DEST_PORTS,
444 if (einfo->flags & XT_SCTP_CHUNK_TYPES) {
447 if (einfo->invflags & XT_SCTP_CHUNK_TYPES) {
450 print_chunks(einfo, numeric);
456 const struct xt_sctp_info *einfo =
459 if (einfo->flags & XT_SCTP_SRC_PORTS) {
460 if (einfo->invflags & XT_SCTP_SRC_PORTS)
462 if (einfo->spts[0] != einfo->spts[1])
464 einfo->spts[0], einfo->spts[1]);
466 printf(" --sport %u", einfo->spts[0]);
469 if (einfo->flags & XT_SCTP_DEST_PORTS) {
470 if (einfo->invflags & XT_SCTP_DEST_PORTS)
472 if (einfo->dpts[0] != einfo->dpts[1])
474 einfo->dpts[0], einfo->dpts[1]);
476 printf(" --dport %u", einfo->dpts[0]);
479 if (einfo->flags & XT_SCTP_CHUNK_TYPES) {
480 if (einfo->invflags & XT_SCTP_CHUNK_TYPES)
484 print_chunks(einfo, 0);