getproto

getproto (

protocol

)

Front-end for getprotobynumber and getprotobyname . If protocol is numeric, calls getprotobynumber , otherwise calls getprotobyname .