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

int nl_addr_set_binary_addr ( struct nl_addr *  addr,
void *  buf,
size_t  len 

Set binary address of abstract address object.

  • addr Abstract address object.
  • buf Buffer containing binary address.
  • len Length of buffer containing binary address.

Definition at line 719 of file addr.c.

Referenced by nl_addr_parse().

      if (len > addr->a_maxsize)
            return -ERANGE;

      addr->a_len = len;
      memcpy(addr->a_addr, buf, len);

      return 0;

Generated by  Doxygen 1.6.0   Back to index