ng_hci_misc.c (184205) | ng_hci_misc.c (243882) |
---|---|
1/* 2 * ng_hci_misc.c 3 */ 4 5/*- 6 * Copyright (c) Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: ng_hci_misc.c,v 1.5 2003/09/08 18:57:51 max Exp $ | 1/* 2 * ng_hci_misc.c 3 */ 4 5/*- 6 * Copyright (c) Maksim Yevmenkin <m_evmenkin@yahoo.com> 7 * All rights reserved. 8 * --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * $Id: ng_hci_misc.c,v 1.5 2003/09/08 18:57:51 max Exp $ |
31 * $FreeBSD: head/sys/netgraph/bluetooth/hci/ng_hci_misc.c 184205 2008-10-23 15:53:51Z des $ | 31 * $FreeBSD: head/sys/netgraph/bluetooth/hci/ng_hci_misc.c 243882 2012-12-05 08:04:20Z glebius $ |
32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kernel.h> 37#include <sys/malloc.h> 38#include <sys/mbuf.h> 39#include <sys/queue.h> --- 20 unchanged lines hidden (view full) --- 60 61void 62ng_hci_mtap(ng_hci_unit_p unit, struct mbuf *m0) 63{ 64 struct mbuf *m = NULL; 65 int error = 0; 66 67 if (unit->raw != NULL && NG_HOOK_IS_VALID(unit->raw)) { | 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kernel.h> 37#include <sys/malloc.h> 38#include <sys/mbuf.h> 39#include <sys/queue.h> --- 20 unchanged lines hidden (view full) --- 60 61void 62ng_hci_mtap(ng_hci_unit_p unit, struct mbuf *m0) 63{ 64 struct mbuf *m = NULL; 65 int error = 0; 66 67 if (unit->raw != NULL && NG_HOOK_IS_VALID(unit->raw)) { |
68 m = m_dup(m0, M_DONTWAIT); | 68 m = m_dup(m0, M_NOWAIT); |
69 if (m != NULL) 70 NG_SEND_DATA_ONLY(error, unit->raw, m); 71 72 if (error != 0) 73 NG_HCI_INFO( 74"%s: %s - Could not forward packet, error=%d\n", 75 __func__, NG_NODE_NAME(unit->node), error); 76 } --- 422 unchanged lines hidden --- | 69 if (m != NULL) 70 NG_SEND_DATA_ONLY(error, unit->raw, m); 71 72 if (error != 0) 73 NG_HCI_INFO( 74"%s: %s - Could not forward packet, error=%d\n", 75 __func__, NG_NODE_NAME(unit->node), error); 76 } --- 422 unchanged lines hidden --- |