nametoproto
fn
int nametoproto(string name)Resolves a protocol name to its number.
Parameters
name | The protocol name (e.g. "tcp"). |
Returns
The protocol number, or -1 if not found.
int nametoproto(string name)Resolves a protocol name to its number.
name | The protocol name (e.g. "tcp"). |