Home | History | Annotate | Download | only in extensions

Lines Matching refs:port

32 " --to-destination [<ipaddr>[-<ipaddr>]][:port[-port]]\n"
59 /* Lets assume one colon is port information. Otherwise its an IPv6 address */
76 int port;
80 "Need TCP, UDP, SCTP or DCCP with port specification");
84 port = atoi(colon+1);
85 if (port <= 0 || port > 65535)
87 "Port `%s' not valid\n", colon+1);
92 "Invalid port:port syntax - use dash\n");
96 range->min_proto.tcp.port
97 = range->max_proto.tcp.port
98 = htons(port);
105 "Port `%s' not valid\n", dash+1);
106 if (maxport < port)
109 "Port range `%s' funky\n", colon+1);
110 range->min_proto.tcp.port = htons(port);
111 range->max_proto.tcp.port = htons(maxport);
203 printf("%hu", ntohs(range->min_proto.tcp.port));
204 if (range->max_proto.tcp.port != range->min_proto.tcp.port)
205 printf("-%hu", ntohs(range->max_proto.tcp.port));
254 xt_xlate_add(xl, ":%hu", ntohs(range->min_proto.tcp.port));
256 if (range->max_proto.tcp.port != range->min_proto.tcp.port)
258 ntohs(range->max_proto.tcp.port));