Home | History | Annotate | Download | only in extensions

Lines Matching refs:port

20 " --to-ports <port>[-<port>]\n"
21 " Port (range) to map to.\n"
23 " Randomize source port.\n");
45 unsigned int port, maxport;
49 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX))
54 mr->range[0].min.tcp.port
55 = mr->range[0].max.tcp.port
56 = htons(port);
62 if (maxport < port)
65 mr->range[0].min.tcp.port = htons(port);
66 mr->range[0].max.tcp.port = htons(maxport);
94 "Need TCP, UDP, SCTP or DCCP with port specification");
112 printf("%hu", ntohs(r->min.tcp.port));
113 if (r->max.tcp.port != r->min.tcp.port)
114 printf("-%hu", ntohs(r->max.tcp.port));
128 printf(" --to-ports %hu", ntohs(r->min.tcp.port));
129 if (r->max.tcp.port != r->min.tcp.port)
130 printf("-%hu", ntohs(r->max.tcp.port));
147 xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port));
148 if (r->max.tcp.port != r->min.tcp.port)
149 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port));