Revision f4a60a9b nest/iface.c

View differences:

nest/iface.c
138 138
static inline void
139 139
ifa_send_notify(struct proto *p, unsigned c, struct ifa *a)
140 140
{
141
  if (p->ifa_notify)
141
  if (p->ifa_notify && (p->proto_state != PS_DOWN))
142 142
    {
143 143
      if (p->debug & D_IFACES)
144 144
	log(L_TRACE "%s < %s address %N on interface %s %s",
......
155 155

  
156 156
  DBG("IFA change notification (%x) for %s:%I\n", c, a->iface->name, a->ip);
157 157

  
158
  WALK_LIST(p, active_proto_list)
158
  WALK_LIST(p, proto_list)
159 159
    ifa_send_notify(p, c, a);
160 160
}
161 161

  
......
174 174
static inline void
175 175
if_send_notify(struct proto *p, unsigned c, struct iface *i)
176 176
{
177
  if (p->if_notify)
177
  if (p->if_notify && (p->proto_state != PS_DOWN))
178 178
    {
179 179
      if (p->debug & D_IFACES)
180 180
	log(L_TRACE "%s < interface %s %s", p->name, i->name,
......
215 215
	ifa_notify_change_(IF_CHANGE_DOWN, a);
216 216
      }
217 217

  
218
  WALK_LIST(p, active_proto_list)
218
  WALK_LIST(p, proto_list)
219 219
    if_send_notify(p, c, i);
220 220

  
221 221
  if (c & IF_CHANGE_UP)

Also available in: Unified diff