diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-07-09 14:57:02 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-07-09 14:57:02 +0000 |
commit | 7380abfdfb9b44f720cd869edca8afe8998e47ae (patch) | |
tree | 58f5fe78d23a754255273a96d807deb7853a5cc2 /usr.sbin/relayd/relay.c | |
parent | 9615e8c8bcf3c4ae99a33e347222a640415f9c45 (diff) |
also set the protocol, either TCP or UDP, in the NAT lookup. this
unbreaks NAT lookups with UDP; tested as a transparent DNS relay.
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r-- | usr.sbin/relayd/relay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 325c4195bd2..005ca6852c2 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.90 2008/06/11 18:21:19 reyk Exp $ */ +/* $OpenBSD: relay.c,v 1.91 2008/07/09 14:57:01 reyk Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -1964,6 +1964,7 @@ relay_accept(int fd, short sig, void *arg) cnl->in = -1; cnl->id = con->se_id; cnl->proc = proc_id; + cnl->proto = IPPROTO_TCP; bcopy(&con->se_in.ss, &cnl->src, sizeof(cnl->src)); bcopy(&rlay->rl_conf.ss, &cnl->dst, sizeof(cnl->dst)); imsg_compose(ibuf_pfe, IMSG_NATLOOK, 0, 0, -1, cnl, |