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

static void route_free_data ( struct nl_object *  c  )  [static]

Definition at line 60 of file route.c.

References nl_addr_put(), and nl_data_free().

{
      struct rtnl_route *r = (struct rtnl_route *) c;

      if (r == NULL)
            return;

      nl_data_free(r->rt_protoinfo);
      nl_addr_put(r->rt_dst);
      nl_addr_put(r->rt_src);
      nl_addr_put(r->rt_gateway);
      nl_addr_put(r->rt_pref_src);

      while (r->rt_nexthops) {
            struct rtnl_nexthop *nh = r->rt_nexthops;
            r->rt_nexthops = nh->rtnh_next;
            nl_addr_put(nh->rtnh_gateway);
            free(nh);
      }
}


Generated by  Doxygen 1.6.0   Back to index