4 * Copyright (C) 2002-2005 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: getportproto.c,v 1.2.4.4 2006/06/16 17:21:00 darrenr Exp
14 int getportproto(name
, proto
)
25 for (s
= name
; *s
!= '\0'; s
++)
30 if (number
< 0 || number
> 65535)
35 p
= getprotobynumber(proto
);
36 s
= getservbyname(name
, p
? p
->p_name
: NULL
);