summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/check_tcp.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-01-08 17:10:24 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-01-08 17:10:24 +0000
commita8ceb925622f6defc5bbfc477d8ce1dcde3ad490 (patch)
treeef10dc7ff1c66c991a24c37dab14333708981907 /usr.sbin/relayd/check_tcp.c
parentef09dc0c49bab419694a1d6703348fdee0e041ad (diff)
allow to use service names in addition to numerical port numbers in
the configuration file, eg. "real port http". > From Pierre-Yves Ritschard (pyr at spootnik dot org) ok claudio@
Diffstat (limited to 'usr.sbin/relayd/check_tcp.c')
-rw-r--r--usr.sbin/relayd/check_tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayd/check_tcp.c b/usr.sbin/relayd/check_tcp.c
index 888edb8da31..21cd84ce45d 100644
--- a/usr.sbin/relayd/check_tcp.c
+++ b/usr.sbin/relayd/check_tcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: check_tcp.c,v 1.5 2007/01/08 13:37:26 reyk Exp $ */
+/* $OpenBSD: check_tcp.c,v 1.6 2007/01/08 17:10:23 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -48,11 +48,11 @@ check_tcp(struct ctl_tcp_event *cte)
switch (cte->host->ss.ss_family) {
case AF_INET:
((struct sockaddr_in *)&cte->host->ss)->sin_port =
- htons(cte->table->port);
+ cte->table->port;
break;
case AF_INET6:
((struct sockaddr_in6 *)&cte->host->ss)->sin6_port =
- htons(cte->table->port);
+ cte->table->port;
break;
}