nametoeproto
fn
int nametoeproto(string name)Resolves an Ethernet protocol name to its number.
Parameters
name | The Ethernet protocol name (e.g. "ip"). |
Returns
The protocol number, or -1 if not found.
int nametoeproto(string name)Resolves an Ethernet protocol name to its number.
name | The Ethernet protocol name (e.g. "ip"). |