int getprotobyname
getprotobyname() は、プロトコル name のプロトコル番号を /etc/protocols から取得して返します。 getprotobynumber()も参照下さい。