Deleted Added
full compact
kern_ndis.c (151691) kern_ndis.c (151967)
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 151691 2005-10-26 06:52:57Z wpaul $");
34__FBSDID("$FreeBSD: head/sys/compat/ndis/kern_ndis.c 151967 2005-11-02 13:46:32Z andre $");
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>

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

712 return(EINVAL);
713
714 priv = &p->np_private;
715 buf = priv->npp_head;
716 p->np_refcnt = 0;
717
718 for (buf = priv->npp_head; buf != NULL; buf = buf->mdl_next) {
719 if (buf == priv->npp_head)
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>

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

712 return(EINVAL);
713
714 priv = &p->np_private;
715 buf = priv->npp_head;
716 p->np_refcnt = 0;
717
718 for (buf = priv->npp_head; buf != NULL; buf = buf->mdl_next) {
719 if (buf == priv->npp_head)
720 MGETHDR(m, M_DONTWAIT, MT_HEADER);
720 MGETHDR(m, M_DONTWAIT, MT_DATA);
721 else
722 MGET(m, M_DONTWAIT, MT_DATA);
723 if (m == NULL) {
724 m_freem(*m0);
725 *m0 = NULL;
726 return(ENOBUFS);
727 }
728 m->m_len = MmGetMdlByteCount(buf);

--- 805 unchanged lines hidden ---
721 else
722 MGET(m, M_DONTWAIT, MT_DATA);
723 if (m == NULL) {
724 m_freem(*m0);
725 *m0 = NULL;
726 return(ENOBUFS);
727 }
728 m->m_len = MmGetMdlByteCount(buf);

--- 805 unchanged lines hidden ---