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

void rtnl_addr_set_prefixlen ( struct rtnl_addr *  addr,
int  prefix 

Set prefix length of address object.

  • addr Address object to be modified.
  • prefix New prefix length.

Definition at line 840 of file addr.c.

      addr->a_prefixlen = prefix;
      addr->a_mask |= ADDR_ATTR_PREFIXLEN;

Generated by  Doxygen 1.6.0   Back to index