Deleted Added
full compact
ip_compat.h (183397) ip_compat.h (184205)
1/*
2 * Copyright (C) 1993-2001, 2003 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * @(#)ip_compat.h 1.8 1/14/96
1/*
2 * Copyright (C) 1993-2001, 2003 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * @(#)ip_compat.h 1.8 1/14/96
7 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_compat.h 183397 2008-09-27 08:51:18Z ed $
7 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_compat.h 184205 2008-10-23 15:53:51Z des $
8 * Id: ip_compat.h,v 2.142.2.57 2007/10/10 09:51:42 darrenr Exp $
9 */
10
11#ifndef __IP_COMPAT_H__
12#define __IP_COMPAT_H__
13
14#ifndef __P
15# ifdef __STDC__

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

1657# else
1658# ifdef M_IPFILTER
1659# define _M_IPF M_IPFILTER
1660# else
1661# define _M_IPF M_TEMP
1662# endif /* M_IPFILTER */
1663# endif /* M_PFIL */
1664# endif /* IPFILTER_M_IPFILTER */
8 * Id: ip_compat.h,v 2.142.2.57 2007/10/10 09:51:42 darrenr Exp $
9 */
10
11#ifndef __IP_COMPAT_H__
12#define __IP_COMPAT_H__
13
14#ifndef __P
15# ifdef __STDC__

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

1657# else
1658# ifdef M_IPFILTER
1659# define _M_IPF M_IPFILTER
1660# else
1661# define _M_IPF M_TEMP
1662# endif /* M_IPFILTER */
1663# endif /* M_PFIL */
1664# endif /* IPFILTER_M_IPFILTER */
1665# define KMALLOC(a, b) MALLOC((a), b, sizeof(*(a)), _M_IPF, M_NOWAIT)
1666# if !defined(KMALLOCS)
1667# define KMALLOCS(a, b, c) MALLOC((a), b, (c), _M_IPF, M_NOWAIT)
1665# if defined(__FreeBSD__) && __FreeBSD_version >= 800051
1666# define KMALLOC(a, b) do { \
1667 a = (b)malloc(sizeof(*(a)), _M_IPF, M_NOWAIT); \
1668 } while (0)
1669# define KMALLOCS(a, b, c) do { \
1670 a = (b)malloc((c), _M_IPF, ((c) > 4096) ? M_WAITOK : M_NOWAIT); \
1671 } while (0)
1672# define KFREE(x) free((x), _M_IPF)
1673# define KFREES(x,s) free((x), _M_IPF)
1674# else
1675# define KMALLOC(a, b) MALLOC((a), b, sizeof(*(a)), _M_IPF, M_NOWAIT)
1676# if !defined(KMALLOCS)
1677# define KMALLOCS(a, b, c) MALLOC((a), b, (c), _M_IPF, M_NOWAIT)
1678# endif
1679# define KFREE(x) FREE((x), _M_IPF)
1680# define KFREES(x,s) FREE((x), _M_IPF)
1668# endif
1681# endif
1669# define KFREE(x) FREE((x), _M_IPF)
1670# define KFREES(x,s) FREE((x), _M_IPF)
1671# define UIOMOVE(a,b,c,d) uiomove((caddr_t)a,b,d)
1672# define SLEEP(id, n) tsleep((id), PPAUSE|PCATCH, n, 0)
1673# define WAKEUP(id,x) wakeup(id+x)
1674# define POLLWAKEUP(x) selwakeup(ipfselwait+x)
1675# define GETIFP(n, v) ifunit(n)
1676# endif /* (Free)BSD */
1677
1678# if !defined(USE_MUTEXES) && !defined(SPL_NET)

--- 841 unchanged lines hidden ---
1682# define UIOMOVE(a,b,c,d) uiomove((caddr_t)a,b,d)
1683# define SLEEP(id, n) tsleep((id), PPAUSE|PCATCH, n, 0)
1684# define WAKEUP(id,x) wakeup(id+x)
1685# define POLLWAKEUP(x) selwakeup(ipfselwait+x)
1686# define GETIFP(n, v) ifunit(n)
1687# endif /* (Free)BSD */
1688
1689# if !defined(USE_MUTEXES) && !defined(SPL_NET)

--- 841 unchanged lines hidden ---