Logo Search packages:      
Sourcecode: libnl2 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 769 of file addr.c.

Referenced by nl_addr_parse().

{
      if (len > addr->a_maxsize)
            return -NLE_RANGE;

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

      return 0;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index