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

int rtnl_rule_get_src_len ( struct rtnl_rule *  rule  ) 

Get the source address prefix length of a rule

  • rule rule handle
    Prefix length of source address or -1 if not set

Definition at line 718 of file rule.c.

      if (rule->r_mask & RULE_ATTR_SRC_LEN)
            return rule->r_src_len;
            return -1;

Generated by  Doxygen 1.6.0   Back to index