/*
* Copyright (C) 1993-2005 by Darren Reed.
* See the IPFILTER.LICENCE file for details on licencing.
*/
#include <ctype.h>
#include "ipf.h"
char *name;
int proto;
{
struct servent *s;
struct protoent *p;
int number;
char *s;
for (s = name; *s != '\0'; s++)
if (!ISDIGIT(*s))
return -1;
return -1;
}
p = getprotobynumber(proto);
if (s != NULL)
return s->s_port;
return -1;
}