1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00
freebsd/sbin/ipf/libipf/kmem.h
Cy Schubert 41edb306f0 ipfilter: Move userland bits to sbin
Through fixes and improvements our ipfilter sources have diverged
enough to warrant move from contrib into sbin/ipf. Now that I'm
planning on implementing MSS clamping as in iptables it makes more
sense to move ipfilter to sbin.

This is the second of three commits of the ipfilter move.

Suggested by glebius on two occaions.

Suggested by and discussed with:	glebius
Reviewed by:				glebius, kp (for #network)
MFC after:				1 month
Differential Revision:		https://reviews.freebsd.org/D33510
2021-12-20 06:16:33 -08:00

31 lines
486 B
C

/* $FreeBSD$ */
/*
* Copyright (C) 2012 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
* $Id$
*/
#ifndef __KMEM_H__
#define __KMEM_H__
#ifndef __P
# define __P(x) x
#endif
extern int openkmem(char *, char *);
extern int kmemcpy(char *, long, int);
extern int kstrncpy(char *, long, int);
#if defined(__NetBSD__)
# include <paths.h>
#endif
#ifdef _PATH_KMEM
# define KMEM _PATH_KMEM
#else
# define KMEM "/dev/kmem"
#endif
#endif /* __KMEM_H__ */