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

int rtnl_addr_set_broadcast ( struct rtnl_addr *  addr,
struct nl_addr *  bcast 
)

Set broadcast address of address object.

  • addr Address object to be modified.
  • bcast New broadcast address.
Assigns the new broadcast address to the specified address object. The address is validated against the address family if set already via either rtnl_addr_set_family() or by setting one of the other addresses. The assignment fails if the address families mismatch. In case the address family has not been specified yet, the address family of this new address is elected to be the requirement.

Returns:
0 on success or a negative error code.

Definition at line 1036 of file addr.c.

{
      return __assign_addr(addr, &addr->a_bcast, bcast, ADDR_ATTR_BROADCAST);
}


Generated by  Doxygen 1.6.0   Back to index