pfild.h revision 381a2a9a387f449fab7d0c7e97c4184c26963abf
/*
* Copyright (C) 2003 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* STREAMS control messages used to communicate between pfild and pfil.
* M_PROTO block contains uint32_t command code.
* M_DATA block contains [an array of] the corresponding data structure.
*/
/*
* Data structure used to pass interface configuration information from
* pfild to the pfil kernel module.
*/
#define PFILCMD_IFADDRS 1
struct pfil_ifaddrs {
union {
struct sockaddr_in in;
struct sockaddr_in6 in6;
} localaddr;
union {
struct sockaddr_in in;
struct sockaddr_in6 in6;
} netmask;
union {
struct sockaddr_in in;
struct sockaddr_in6 in6;
} broadaddr;
union {
struct sockaddr_in in;
struct sockaddr_in6 in6;
} dstaddr;
};
/*
* Data structure used to pass interface valid source address set information
* from pfild to the pfil kernel module.
*/
#define PFILCMD_IFADDRSET 2
struct pfil_ifaddrset {
};
struct pfil_v4span {
};
struct pfil_v6span {
};