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