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

int rtnl_rule_get_family ( struct rtnl_rule *  rule  ) 

Get the address family of a rule

  • rule rule handle
    Returns:
    Address family or AF_UNSPEC if not set

Definition at line 596 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_FAMILY)
            return rule->r_family;
      else
            return AF_UNSPEC;
}


Generated by  Doxygen 1.6.0   Back to index