Home | History | Annotate | Download | only in extensions

Lines Matching defs:port

33 " --to-destination [<ipaddr>[-<ipaddr>]][:port[-port]]\n"
80 int port;
84 "Need TCP, UDP, SCTP or DCCP with port specification");
88 port = atoi(colon+1);
89 if (port <= 0 || port > 65535)
91 "Port `%s' not valid\n", colon+1);
96 "Invalid port:port syntax - use dash\n");
100 range.min.tcp.port
101 = range.max.tcp.port
102 = htons(port);
109 "Port `%s' not valid\n", dash+1);
110 if (maxport < port)
113 "Port range `%s' funky\n", colon+1);
114 range.min.tcp.port = htons(port);
115 range.max.tcp.port = htons(maxport);
208 printf("%hu", ntohs(r->min.tcp.port));
209 if (r->max.tcp.port != r->min.tcp.port)
210 printf("-%hu", ntohs(r->max.tcp.port));
259 xt_xlate_add(xl, ":%hu", ntohs(r->min.tcp.port));
260 if (r->max.tcp.port != r->min.tcp.port)
261 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port));