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

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

Get the destination address of a rule

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

Definition at line 830 of file rule.c.

{
      if (rule->r_mask & RULE_ATTR_DST)
            return rule->r_dst;
      else
            return NULL;
}


Generated by  Doxygen 1.6.0   Back to index