summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-10-26 18:22:59 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-10-26 18:22:59 +0000
commit8b5859933cfc55df939a3782f61ae73efa2a8c1e (patch)
treeca37f557b150c1cfe0a9b5d8757077dd045bf6de /sys/net
parent794171aec1753b64fe3fc3c4b25f9f4147929230 (diff)
Set the rdomain in bpfwrite() to the interface rdomain so that bpf sender
like dhcpd/dhclinet can send packets out of interfaces in other rdomains without hitting the check in ether_output(). With and ok phessler@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index f6f7e6c7122..55e85a106c0 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.73 2009/09/21 16:33:42 canacar Exp $ */
+/* $OpenBSD: bpf.c,v 1.74 2009/10/26 18:22:58 claudio Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@@ -540,6 +540,8 @@ bpfwrite(dev_t dev, struct uio *uio, int ioflag)
return (EMSGSIZE);
}
+ m->m_pkthdr.rdomain = ifp->if_rdomain;
+
if (d->bd_hdrcmplt)
dst.ss_family = pseudo_AF_HDRCMPLT;