Mapping protocol names (Internet domain)
For protocols, the protoent structure
defines the protocol name mapping used with the routines
getnetent(SLIB)
and
getprotoent(SLIB):
struct protoent {
char *p_name;
char **p_aliases;
int p_proto;
}
*p_name**p_aliasesp_proto