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

int rtnl_rule_get_dst_len ( struct rtnl_rule *  rule  ) 

Get the destination address prefix length of a rule

  • rule rule handle
    Returns:
    Prefix length of destination address or -1 if not set

Definition at line 744 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_DST_LEN)
            return rule->r_dst_len;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index