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