From a8ceb925622f6defc5bbfc477d8ce1dcde3ad490 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Mon, 8 Jan 2007 17:10:24 +0000 Subject: 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@ --- usr.sbin/relayd/check_tcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/relayd/check_tcp.c') 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 @@ -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; } -- cgit v1.2.3