2 * Copyright (C) 1993-2005 by Darren Reed.
3 * See the IPFILTER.LICENCE file for details on licencing.
9 int getportproto(name
, proto
)
20 for (s
= name
; *s
!= '\0'; s
++)
25 if (number
< 0 || number
> 65535)
30 p
= getprotobynumber(proto
);
31 s
= getservbyname(name
, p
? p
->p_name
: NULL
);