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

char* nl_nlfamily2str ( int  family,
char *  buf,
size_t  size 
)

Convert netlink family to character string.

  • family Netlink family.
  • buf Destination buffer.
  • size Size of destination buffer.
Converts a netlink family to a character string and stores it in the specified destination buffer.

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

Definition at line 963 of file nl.c.

{
      return __type2str(family, buf, size, nlfamilies,
                    ARRAY_SIZE(nlfamilies));
}


Generated by  Doxygen 1.6.0   Back to index