Lines Matching full:port
26 " --to-destination <ipaddr>[-<ipaddr>][:port-port]\n"
68 int port;
72 "Need TCP or UDP with port specification");
76 port = atoi(colon+1);
77 if (port <= 0 || port > 65535)
79 "Port `%s' not valid\n", colon+1);
84 "Invalid port:port syntax - use dash\n");
88 range.min.tcp.port
89 = range.max.tcp.port
90 = htons(port);
97 "Port `%s' not valid\n", dash+1);
98 if (maxport < port)
101 "Port range `%s' funky\n", colon+1);
102 range.min.tcp.port = htons(port);
103 range.max.tcp.port = htons(maxport);
197 printf("%hu", ntohs(r->min.tcp.port));
198 if (r->max.tcp.port != r->min.tcp.port)
199 printf("-%hu", ntohs(r->max.tcp.port));