Revision f4a60a9b nest/neighbor.c

View differences:

nest/neighbor.c
239 239
  rem_node(&n->n);
240 240
  add_tail(&neigh_hash_table[neigh_hash(n->proto, &n->addr)], &n->n);
241 241
  DBG("Waking up sticky neighbor %I\n", n->addr);
242
  if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING)
242
  if (n->proto->neigh_notify && (n->proto->proto_state != PS_STOP))
243 243
    n->proto->neigh_notify(n);
244 244
}
245 245

  
......
252 252
    n->iface = NULL;
253 253
  n->ifa = NULL;
254 254
  n->scope = -1;
255
  if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING)
255
  if (n->proto->neigh_notify && (n->proto->proto_state != PS_STOP))
256 256
    n->proto->neigh_notify(n);
257 257
  rem_node(&n->n);
258 258
  if (n->flags & NEF_STICKY)
......
333 333
  WALK_LIST_DELSAFE(x, y, i->neighbors)
334 334
    {
335 335
      neighbor *n = SKIP_BACK(neighbor, if_n, x);
336
      if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING)
336
      if (n->proto->neigh_notify && (n->proto->proto_state != PS_STOP))
337 337
	n->proto->neigh_notify(n);
338 338
    }
339 339
}

Also available in: Unified diff