Logo Search packages:      
Sourcecode: libnl version File versions  Download package

char* nl_ether_proto2str ( int  eproto,
char *  buf,
size_t  len 
)

Convert a ethernet protocol to a character string (Reentrant).

  • eproto ethernet protocol
  • buf destination buffer
  • len buffer length
Converts a ethernet protocol to a character string and stores it in the specified destination buffer.

Returns:
The destination buffer or the type encoded in hexidecimal form if no match was found.

Definition at line 607 of file utils.c.

{
      return __type2str(eproto, buf, len, ether_protos,
                      ARRAY_SIZE(ether_protos));
}


Generated by  Doxygen 1.6.0   Back to index