summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_TPROXY.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-01-27 18:14:21 +0100
committerJan Engelhardt <jengelh@medozas.de>2009-01-27 23:14:29 +0100
commite917bca09924435f3fca23c01042543b1826c81e (patch)
tree4af388f40ddf885f17fa3e8fe791b3f9affd2a14 /extensions/libxt_TPROXY.c
parenta80975497968e69b23f56bf15d346c65bec381f2 (diff)
extensions: use UINT_MAX constants over open-coded numbers (2/2)
Use the handy constants for ranges. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_TPROXY.c')
-rw-r--r--extensions/libxt_TPROXY.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_TPROXY.c b/extensions/libxt_TPROXY.c
index e9a41a15..41ca2436 100644
--- a/extensions/libxt_TPROXY.c
+++ b/extensions/libxt_TPROXY.c
@@ -40,7 +40,7 @@ static void parse_tproxy_lport(const char *s, struct xt_tproxy_target_info *info
{
unsigned int lport;
- if (string_to_number(s, 0, 65535, &lport) != -1)
+ if (string_to_number(s, 0, UINT16_MAX, &lport) != -1)
info->lport = htons(lport);
else
param_act(P_BAD_VALUE, "TPROXY", "--on-port", s);