• Home
  • Raw
  • Download

Lines Matching refs:einfo

105 	struct xt_dccp_info *einfo = cb->data;  in dccp_parse()  local
110 einfo->flags |= XT_DCCP_SRC_PORTS; in dccp_parse()
112 einfo->invflags |= XT_DCCP_SRC_PORTS; in dccp_parse()
115 einfo->flags |= XT_DCCP_DEST_PORTS; in dccp_parse()
117 einfo->invflags |= XT_DCCP_DEST_PORTS; in dccp_parse()
120 einfo->flags |= XT_DCCP_TYPE; in dccp_parse()
121 einfo->typemask = parse_dccp_types(cb->arg); in dccp_parse()
123 einfo->invflags |= XT_DCCP_TYPE; in dccp_parse()
126 einfo->flags |= XT_DCCP_OPTION; in dccp_parse()
128 einfo->invflags |= XT_DCCP_OPTION; in dccp_parse()
213 const struct xt_dccp_info *einfo = in dccp_print() local
218 if (einfo->flags & XT_DCCP_SRC_PORTS) { in dccp_print()
219 print_ports("spt", einfo->spts[0], einfo->spts[1], in dccp_print()
220 einfo->invflags & XT_DCCP_SRC_PORTS, in dccp_print()
224 if (einfo->flags & XT_DCCP_DEST_PORTS) { in dccp_print()
225 print_ports("dpt", einfo->dpts[0], einfo->dpts[1], in dccp_print()
226 einfo->invflags & XT_DCCP_DEST_PORTS, in dccp_print()
230 if (einfo->flags & XT_DCCP_TYPE) { in dccp_print()
231 print_types(einfo->typemask, in dccp_print()
232 einfo->invflags & XT_DCCP_TYPE, in dccp_print()
236 if (einfo->flags & XT_DCCP_OPTION) { in dccp_print()
237 print_option(einfo->option, in dccp_print()
238 einfo->invflags & XT_DCCP_OPTION, numeric); in dccp_print()
244 const struct xt_dccp_info *einfo = in dccp_save() local
247 if (einfo->flags & XT_DCCP_SRC_PORTS) { in dccp_save()
248 if (einfo->invflags & XT_DCCP_SRC_PORTS) in dccp_save()
250 if (einfo->spts[0] != einfo->spts[1]) in dccp_save()
252 einfo->spts[0], einfo->spts[1]); in dccp_save()
254 printf(" --sport %u", einfo->spts[0]); in dccp_save()
257 if (einfo->flags & XT_DCCP_DEST_PORTS) { in dccp_save()
258 if (einfo->invflags & XT_DCCP_DEST_PORTS) in dccp_save()
260 if (einfo->dpts[0] != einfo->dpts[1]) in dccp_save()
262 einfo->dpts[0], einfo->dpts[1]); in dccp_save()
264 printf(" --dport %u", einfo->dpts[0]); in dccp_save()
267 if (einfo->flags & XT_DCCP_TYPE) { in dccp_save()
269 einfo->invflags & XT_DCCP_TYPE ? " !" : ""); in dccp_save()
270 print_types(einfo->typemask, false, 0); in dccp_save()
273 if (einfo->flags & XT_DCCP_OPTION) { in dccp_save()
275 einfo->invflags & XT_DCCP_OPTION ? " !" : "", in dccp_save()
276 einfo->option); in dccp_save()
293 static int dccp_type_xlate(const struct xt_dccp_info *einfo, in dccp_type_xlate() argument
297 uint16_t types = einfo->typemask; in dccp_type_xlate()
302 xt_xlate_add(xl, " dccp type%s ", einfo->invflags ? " !=" : ""); in dccp_type_xlate()
333 const struct xt_dccp_info *einfo = in dccp_xlate() local
340 if (einfo->flags & XT_DCCP_SRC_PORTS) { in dccp_xlate()
341 if (einfo->spts[0] != einfo->spts[1]) in dccp_xlate()
343 einfo->invflags & XT_DCCP_SRC_PORTS ? " !=" : "", in dccp_xlate()
344 einfo->spts[0], einfo->spts[1]); in dccp_xlate()
347 einfo->invflags & XT_DCCP_SRC_PORTS ? " !=" : "", in dccp_xlate()
348 einfo->spts[0]); in dccp_xlate()
352 if (einfo->flags & XT_DCCP_DEST_PORTS) { in dccp_xlate()
353 if (einfo->dpts[0] != einfo->dpts[1]) in dccp_xlate()
355 einfo->invflags & XT_DCCP_DEST_PORTS ? " !=" : "", in dccp_xlate()
356 einfo->dpts[0], einfo->dpts[1]); in dccp_xlate()
359 einfo->invflags & XT_DCCP_DEST_PORTS ? " !=" : "", in dccp_xlate()
360 einfo->dpts[0]); in dccp_xlate()
363 if (einfo->flags & XT_DCCP_TYPE) in dccp_xlate()
364 ret = dccp_type_xlate(einfo, xl); in dccp_xlate()
366 if (einfo->flags & XT_DCCP_OPTION) in dccp_xlate()