diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-03-09 12:36:13 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-03-09 12:36:13 +0000 |
commit | 866c92b182a22fce8a88fc3281e2b2ddc95a54d2 (patch) | |
tree | c8e7d42a246d4e99a38c2826faae133d45a9577f /sys/netinet | |
parent | 0a6bb48f45f0abeabfee0ac55425fb7d19903195 (diff) |
Use correct routing domain when doing address lookups.
ok claudio@ "approved" deraadt@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_divert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 518cb0bab18..f44244f0f14 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_divert.c,v 1.4 2010/03/08 14:18:07 jsing Exp $ */ +/* $OpenBSD: ip_divert.c,v 1.5 2010/03/09 12:36:12 jsing Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -105,7 +105,7 @@ divert_output(struct mbuf *m, ...) if (sin->sin_addr.s_addr != INADDR_ANY) { ipaddr.sin_addr = sin->sin_addr; - ifa = ifa_ifwithaddr(sintosa(&ipaddr), 0); + ifa = ifa_ifwithaddr(sintosa(&ipaddr), m->m_pkthdr.rdomain); if (ifa == NULL) { divstat.divs_errors++; m_freem(m); |