getprotobynumber

getprotobynumber NUMBER

This function does the same thing as getprotobynumber(3): it translates a protocol number to its corresponding name. The return value in list context is:

($name, $aliases, $protocol_number)

In scalar context, getprotobynumber returns only the protocol name.