17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * Copyright (C) 1993-2001 by Darren Reed. 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * See the IPFILTER.LICENCE file for details on licencing. 57c478bd9Sstevel@tonic-gate * 67c478bd9Sstevel@tonic-gate * $Id: ipt.h,v 2.6 2003/02/16 02:33:09 darrenr Exp $ 77c478bd9Sstevel@tonic-gate */ 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gate #ifndef __IPT_H__ 107c478bd9Sstevel@tonic-gate #define __IPT_H__ 117c478bd9Sstevel@tonic-gate 127c478bd9Sstevel@tonic-gate #ifndef __P 137c478bd9Sstevel@tonic-gate # define P_DEF 147c478bd9Sstevel@tonic-gate # ifdef __STDC__ 157c478bd9Sstevel@tonic-gate # define __P(x) x 167c478bd9Sstevel@tonic-gate # else 177c478bd9Sstevel@tonic-gate # define __P(x) () 187c478bd9Sstevel@tonic-gate # endif 197c478bd9Sstevel@tonic-gate #endif 207c478bd9Sstevel@tonic-gate 217c478bd9Sstevel@tonic-gate #include <fcntl.h> 227c478bd9Sstevel@tonic-gate 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate struct ipread { 257c478bd9Sstevel@tonic-gate int (*r_open) __P((char *)); 267c478bd9Sstevel@tonic-gate int (*r_close) __P((void)); 277c478bd9Sstevel@tonic-gate int (*r_readip) __P((char *, int, char **, int *)); 287c478bd9Sstevel@tonic-gate int r_flags; 297c478bd9Sstevel@tonic-gate }; 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate #define R_DO_CKSUM 0x01 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate extern void debug __P((char *, ...)); 347c478bd9Sstevel@tonic-gate extern void verbose __P((char *, ...)); 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate #ifdef P_DEF 377c478bd9Sstevel@tonic-gate # undef __P 387c478bd9Sstevel@tonic-gate # undef P_DEF 397c478bd9Sstevel@tonic-gate #endif 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate #endif /* __IPT_H__ */ 42