Lines Matching refs:port
45 unsigned int port, maxport; in parse_ports() local
49 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX)) in parse_ports()
54 mr->range[0].min.tcp.port in parse_ports()
55 = mr->range[0].max.tcp.port in parse_ports()
56 = htons(port); in parse_ports()
62 if (maxport < port) in parse_ports()
65 mr->range[0].min.tcp.port = htons(port); in parse_ports()
66 mr->range[0].max.tcp.port = htons(maxport); in parse_ports()
112 printf("%hu", ntohs(r->min.tcp.port)); in MASQUERADE_print()
113 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_print()
114 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_print()
128 printf(" --to-ports %hu", ntohs(r->min.tcp.port)); in MASQUERADE_save()
129 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_save()
130 printf("-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_save()
147 xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port)); in MASQUERADE_xlate()
148 if (r->max.tcp.port != r->min.tcp.port) in MASQUERADE_xlate()
149 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_xlate()