diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 17:10:24 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 17:10:24 +0000 |
commit | a8ceb925622f6defc5bbfc477d8ce1dcde3ad490 (patch) | |
tree | ef10dc7ff1c66c991a24c37dab14333708981907 /usr.sbin/relayd/pfe_filter.c | |
parent | ef09dc0c49bab419694a1d6703348fdee0e041ad (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/pfe_filter.c')
-rw-r--r-- | usr.sbin/relayd/pfe_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/pfe_filter.c b/usr.sbin/relayd/pfe_filter.c index dba7980325e..fe56b2a95cb 100644 --- a/usr.sbin/relayd/pfe_filter.c +++ b/usr.sbin/relayd/pfe_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfe_filter.c,v 1.5 2007/01/08 13:37:26 reyk Exp $ */ +/* $OpenBSD: pfe_filter.c,v 1.6 2007/01/08 17:10:23 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -310,7 +310,7 @@ sync_ruleset(struct hostated *env, struct service *service, int enable) if (ioctl(env->pf->dev, DIOCADDADDR, &pio) == -1) fatal("sync_ruleset: cannot add address to pool"); - rio.rule.rpool.proxy_port[0] = service->table->port; + rio.rule.rpool.proxy_port[0] = ntohs(service->table->port); rio.rule.rpool.port_op = PF_OP_EQ; rio.rule.rpool.opts = PF_POOL_ROUNDROBIN; if (service->flags & F_STICKY) |