/*
* Copyright (C) 1993-2005 by Darren Reed.
* See the IPFILTER.LICENCE file for details on licencing.
*/
#include "ipf.h"
char *name;
{
struct protoent *p;
char *s;
for (s = name; *s != '\0'; s++)
if (!ISDIGIT(*s))
break;
if (*s == '\0')
#ifdef _AIX51
/*
*/
return 0;
#endif
p = getprotobyname(name);
if (p != NULL)
return p->p_proto;
return -1;
}