Deleted Added
full compact
kern_ndis.c (170487) kern_ndis.c (175872)
1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/compat/ndis/kern_ndis.c 170487 2007-06-10 04:40:13Z mjacob $");
34__FBSDID("$FreeBSD: head/sys/compat/ndis/kern_ndis.c 175872 2008-02-01 19:36:27Z phk $");
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/unistd.h>
39#include <sys/types.h>
40#include <sys/errno.h>
41#include <sys/callout.h>
42#include <sys/socket.h>

--- 686 unchanged lines hidden (view full) ---

729 if (m == NULL) {
730 m_freem(*m0);
731 *m0 = NULL;
732 return(ENOBUFS);
733 }
734 m->m_len = MmGetMdlByteCount(buf);
735 m->m_data = MmGetMdlVirtualAddress(buf);
736 MEXTADD(m, m->m_data, m->m_len, ndis_return_packet,
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/unistd.h>
39#include <sys/types.h>
40#include <sys/errno.h>
41#include <sys/callout.h>
42#include <sys/socket.h>

--- 686 unchanged lines hidden (view full) ---

729 if (m == NULL) {
730 m_freem(*m0);
731 *m0 = NULL;
732 return(ENOBUFS);
733 }
734 m->m_len = MmGetMdlByteCount(buf);
735 m->m_data = MmGetMdlVirtualAddress(buf);
736 MEXTADD(m, m->m_data, m->m_len, ndis_return_packet,
737 p, 0, EXT_NDIS);
737 m->m_data, p, 0, EXT_NDIS);
738 p->np_refcnt++;
739
740 totlen += m->m_len;
741 if (m->m_flags & M_PKTHDR)
742 *m0 = m;
743 else
744 prev->m_next = m;
745 prev = m;

--- 728 unchanged lines hidden ---
738 p->np_refcnt++;
739
740 totlen += m->m_len;
741 if (m->m_flags & M_PKTHDR)
742 *m0 = m;
743 else
744 prev->m_next = m;
745 prev = m;

--- 728 unchanged lines hidden ---