Lines Matching refs:port
49 unsigned int port, maxport; in parse_ports() local
53 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX)) in parse_ports()
58 mr->range[0].min.tcp.port in parse_ports()
59 = mr->range[0].max.tcp.port in parse_ports()
60 = htons(port); in parse_ports()
66 if (maxport < port) in parse_ports()
69 mr->range[0].min.tcp.port = htons(port); in parse_ports()
70 mr->range[0].max.tcp.port = htons(maxport); in parse_ports()
119 printf("%hu", ntohs(r->min.tcp.port)); in MASQUERADE_print()
120 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_print()
121 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_print()
138 printf(" --to-ports %hu", ntohs(r->min.tcp.port)); in MASQUERADE_save()
139 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_save()
140 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_save()
160 xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port)); in MASQUERADE_xlate()
161 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_xlate()
162 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_xlate()