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

void rtnl_rule_set_dst_len ( struct rtnl_rule *  rule,
int  len 

Set the destination address prefix length of a rule to the specified value

  • rule rule to change
  • len new destination address length

Definition at line 731 of file rule.c.

References nl_addr_set_prefixlen().

      rule->r_dst_len = len;
      if (rule->r_mask & RULE_ATTR_DST)
            nl_addr_set_prefixlen(rule->r_dst, len);
      rule->r_mask |= RULE_ATTR_DST_LEN;

Generated by  Doxygen 1.6.0   Back to index