/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#endif
#if defined(__NetBSD__)
# include "opt_ipfilter_log.h"
# endif
#endif
#if defined(_KERNEL) && defined(__FreeBSD_version) && \
(__FreeBSD_version >= 220000)
# if (__FreeBSD_version >= 400000)
# if !defined(IPFILTER_LKM)
# include "opt_inet6.h"
# endif
# if (__FreeBSD_version == 400019)
# define CSUM_DELAY_DATA
# endif
# endif
#else
#endif
#if !defined(_AIX51)
#endif
#if defined(_KERNEL)
#else
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
# include <stddef.h>
# define _KERNEL
# ifdef __OpenBSD__
struct file;
# endif
#endif
!defined(linux)
#else
# if !defined(linux)
# include <sys/byteorder.h>
# endif
# include <sys/dditypes.h>
# endif
#endif
#ifdef __hpux
# define _NET_ROUTE_INCLUDED
#endif
#if !defined(linux)
#endif
#ifdef sun
#endif
#if !defined(_KERNEL) && defined(__FreeBSD__)
# include "radix_ipf.h"
#endif
#include <netinet/in_systm.h>
#if !defined(linux)
#endif
#endif
#endif
#ifdef __hpux
#endif
#include "netinet/ip_compat.h"
#ifdef USE_INET6
# endif
#endif
#include "netinet/ip_state.h"
#include "netinet/ip_proxy.h"
#include "netinet/ipf_stack.h"
#ifdef IPFILTER_SCAN
#endif
#ifdef IPFILTER_SYNC
#endif
#include "netinet/ip_htable.h"
#ifdef IPFILTER_COMPILED
# include "netinet/ip_rules.h"
#endif
#if defined(IPFILTER_BPF) && defined(_KERNEL)
#endif
# if defined(_KERNEL) && !defined(IPFILTER_LKM)
# include "opt_ipfilter.h"
# endif
#endif
/* END OF INCLUDES */
#ifdef IPFILTER_COMPAT
struct nat_4010900 {
void *nat_data;
void *nat_sync;
union {
} nat_un;
int nat_dir;
int nat_redir;
};
struct nat_save_4010900 {
void *ipn_next;
int ipn_dsize;
};
struct natlookup_4010900 {
int nlc_flags;
};
/* ------------------------------------------------------------------------ */
/* Function: fr_incomptrans */
/* Returns: int - 0 = success, else failure */
/* Parameters: obj(I) - pointer to ioctl data */
/* ptr(I) - pointer to store real data in */
/* */
/* Translate the copied in ipfobj_t to new for backward compatibility at */
/* the ABI for user land. */
/* ------------------------------------------------------------------------ */
void *ptr;
{
int error;
{
case IPFOBJ_NATLOOKUP :
return EINVAL;
if (!error) {
}
break;
case IPFOBJ_NATSAVE :
return EINVAL;
if (!error) {
}
break;
default :
return EINVAL;
}
return error;
}
/* ------------------------------------------------------------------------ */
/* Function: fr_outcomptrans */
/* Returns: int - 0 = success, else failure */
/* Parameters: obj(I) - pointer to ioctl data */
/* ptr(I) - pointer to store real data in */
/* */
/* Translate the copied out ipfobj_t to new definition for backward */
/* compatibility at the ABI for user land. */
/* ------------------------------------------------------------------------ */
void *ptr;
{
int error;
{
case IPFOBJ_NATLOOKUP :
return EINVAL;
break;
default :
return EINVAL;
}
return error;
}
#endif /* IPFILTER_COMPAT */