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

int rtnl_rule_get_table ( struct rtnl_rule *  rule  ) 

Get the table index of a rule

  • rule rule handle
    Returns:
    Table index or -1 if not set

Definition at line 668 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_TABLE)
            return rule->r_table;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index