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

struct nl_addr* rtnl_rule_get_src ( struct rtnl_rule *  rule  )  [read]

Get the source address of a rule

  • rule rule handle
    Returns:
    Source address or NULL if not set

Definition at line 797 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_SRC)
            return rule->r_src;
      else
            return NULL;
}


Generated by  Doxygen 1.6.0   Back to index