Workaround for not having a proc context. Use the thread0 context when
authorJeffrey Hsu <hsu@dragonflybsd.org>
Thu, 8 Apr 2004 20:13:28 +0000 (20:13 +0000)
committerJeffrey Hsu <hsu@dragonflybsd.org>
Thu, 8 Apr 2004 20:13:28 +0000 (20:13 +0000)
commit321b6cef94a0685508d284a1904a185fd683a5ac
tree1c3d392bb2a49415c3f28edc6209774c12ef5006
parentce6da7e429134352f8c0c4f57b639f7f54f2d32e
Workaround for not having a proc context.  Use the thread0 context when
the real context is not available.  The real solution is to propagate
the information passed into ngc_send() down to here.  This workaround
implements the same incorrect behavior as FreeBSD as of rev 1.4 of
ng_ksocket.c in 1999.
sys/netgraph/ksocket/ng_ksocket.c