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

int rtnl_rule_get_prio ( struct rtnl_rule *  rule  ) 

Get the priority of a rule

  • rule rule handle
    Returns:
    Priority or -1 if not set

Definition at line 620 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_PRIO)
            return rule->r_prio;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index