Lines Matching refs:port
48 unsigned int port, maxport; in parse_ports() local
52 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX)) in parse_ports()
57 r->min_proto.tcp.port in parse_ports()
58 = r->max_proto.tcp.port in parse_ports()
59 = htons(port); in parse_ports()
65 if (maxport < port) in parse_ports()
68 r->min_proto.tcp.port = htons(port); in parse_ports()
69 r->max_proto.tcp.port = htons(maxport); in parse_ports()
117 printf("%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_print()
118 if (r->max_proto.tcp.port != r->min_proto.tcp.port) in MASQUERADE_print()
119 printf("-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_print()
135 printf(" --to-ports %hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_save()
136 if (r->max_proto.tcp.port != r->min_proto.tcp.port) in MASQUERADE_save()
137 printf("-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_save()
155 xt_xlate_add(xl, " to :%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_xlate()
156 if (r->max_proto.tcp.port != r->min_proto.tcp.port) in MASQUERADE_xlate()
157 xt_xlate_add(xl, "-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_xlate()