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

void rtnl_addr_set_label ( struct rtnl_addr *  addr,
const char *  label 
)

Set label of address object

  • addr Address object to be modified.
  • label New address label.
Note:
The maximum size of an address label is IFNAMSIZ.

Definition at line 764 of file addr.c.

{
      strncpy(addr->a_label, label, sizeof(addr->a_label) - 1);
      addr->a_mask |= ADDR_ATTR_LABEL;
}


Generated by  Doxygen 1.6.0   Back to index