Revision fe9f1a6d proto/static/static.c

View differences:

proto/static/static.c
112 112

  
113 113
  /* We skip rta_lookup() here */
114 114

  
115
  n = net_get(p->table, r->net, r->masklen);
115
  n = net_get_ipa(p->table, r->net, r->masklen);
116 116
  e = rte_get_temp(&a);
117 117
  e->net = n;
118 118
  e->pflags = 0;
......
136 136
    return;
137 137

  
138 138
  DBG("Removing static route %I/%d via %I\n", r->net, r->masklen, r->via);
139
  n = net_find(p->table, r->net, r->masklen);
139
  n = net_find_ipa(p->table, r->net, r->masklen);
140 140
  rte_update(p, n, NULL);
141 141
  r->installed = 0;
142 142
}

Also available in: Unified diff