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

int rtnl_rule_get_dsfield ( struct rtnl_rule *  rule  ) 

Get the dsfield of a rule

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

Definition at line 692 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_DSFIELD)
            return rule->r_dsfield;
      else
            return -1;
}


Generated by  Doxygen 1.6.0   Back to index