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

void rtnl_rule_set_src_len ( struct rtnl_rule *  rule,
int  len 
)

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

  • rule rule to change
  • len new source address length

Definition at line 705 of file rule.c.

References nl_addr_set_prefixlen().

{
      rule->r_src_len = len;
      if (rule->r_mask & RULE_ATTR_SRC)
            nl_addr_set_prefixlen(rule->r_src, len);
      rule->r_mask |= RULE_ATTR_SRC_LEN;
}


Generated by  Doxygen 1.6.0   Back to index