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

char* nl_nlmsgtype2str ( int  type,
char *  buf,
size_t  size 
)

Convert netlink message type number to character string.

  • type Netlink message type.
  • buf Destination buffer.
  • size Size of destination buffer.
Converts a netlink message type number to a character string and stores it in the provided buffer.

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

Definition at line 584 of file msg.c.

{
      return __type2str(type, buf, size, nl_msgtypes,
                    ARRAY_SIZE(nl_msgtypes));
}


Generated by  Doxygen 1.6.0   Back to index