ipft_ef.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: ipft_ef.c,v 1.11 2003/06/02 12:22:49 darrenr Exp $
*/
/*
icmp type
lnth proto source destination src port dst port
etherfind -n
60 tcp 128.250.20.20 128.250.133.13 2419 telnet
etherfind -n -t
0.32 91 04 131.170.1.10 128.250.133.13
0.33 566 udp 128.250.37.155 128.250.133.3 901 901
*/
#include "ipf.h"
#include "ipt.h"
#if !defined(lint)
#endif
static int etherf_open __P((char *));
static int etherf_close __P((void));
static int etherf_readip __P((char *, int, char **, int *));
static int efd = -1;
static int etherf_open(fname)
char *fname;
{
if (efd != -1)
return efd;
efd = 0;
} else {
}
return efd;
}
static int etherf_close()
{
}
{
return 0;
*s = '\0';
return -1;
case IPPROTO_TCP :
case IPPROTO_UDP :
break;
#ifdef IGMP
case IPPROTO_IGMP :
break;
#endif
case IPPROTO_ICMP :
break;
default :
break;
}
return i;
}