/*
* Copyright (C) 1995-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#if !defined(lint)
#endif
#include <ctype.h>
#include "ipf.h"
#include "ipt.h"
#ifndef linux
#endif
extern int opts;
static int text_readip __P((char *, int, char **, int *));
/*
* returns an ip address as a long var as a result of either a DNS lookup or
* straight inet_addr() call
*/
char *host;
int *resolved;
{
*resolved = 0;
return 0L;
*resolved = -1;
return 0;
}
}
/*
* find the port number given by the name, either from getservbyname() or
* straight atoi()
*/
char *name;
{
if (!tx_proto)
if (sp)
return 0;
}
if (sp)
name);
return 0;
}
return 0;
}
}
char *tx_icmptypes[] = {
"routersol", "timex", "paramprob", "timest", "timestrep",
"inforeq", "inforep", "maskreq", "maskrep", "END"
};
char *fname;
{
return tfd;
}
tfd = 0;
} else {
if (tfd != -1)
}
return tfd;
}
static int text_close()
{
tfd = -1;
}
{
register char *s;
*s = '\0';
*s = '\0';
*s = '\0';
if (!*line)
continue;
*dir = 0;
#if 0
#else
return sizeof(ip_t);
#endif
}
return -1;
}
char *line;
char **ifn;
int *out;
{
int i, r;
if (*ifn)
if (!*cpp)
return 1;
c = **cpp;
return 1;
}
cpp++;
if (!*cpp)
return 1;
cpp++;
if (!*cpp)
return 1;
if (!*cpp)
return 1;
}
c = **cpp;
if (c == 't') {
tx_proto = "tcp";
} else if (c == 'u') {
tx_proto = "udp";
} else {
tx_proto = "icmp";
}
cpp++;
cpp++;
} else
if (!*cpp)
return 1;
char *last;
if (!last) {
return 1;
}
*last++ = '\0';
}
}
cpp++;
if (!*cpp)
return 1;
char *last;
if (!last) {
return 1;
}
*last++ = '\0';
}
cpp++;
char *s, *t;
for (s = *cpp; *s; s++)
cpp++;
abort();
extern char *tx_icmptypes[];
char **s, *t;
int i;
s++, i++)
cpp++;
break;
}
}
cpp++;
if (olen) {
}
}
sizeof(*tcp));
sizeof(*ic));
return 0;
}