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

uint64_t rtnl_rule_get_fwmark ( struct rtnl_rule *  rule  ) 

Get the firewall mark of a rule

  • rule rule handle
    Returns:
    Firewall mark or UINT_LEAST64_MAX if not set

Definition at line 644 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_FWMARK)
            return rule->r_fwmark;
      else
            return UINT_LEAST64_MAX;
}


Generated by  Doxygen 1.6.0   Back to index