Revision 10d807d0 sysdep/unix/krt-set.c

View differences:

sysdep/unix/krt-set.c
1 1
/*
2 2
 *	BIRD -- Unix Routing Table Syncing
3 3
 *
4
 *	(c) 1998 Martin Mares <mj@ucw.cz>
4
 *	(c) 1998--1999 Martin Mares <mj@ucw.cz>
5 5
 *
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 */
......
115 115
void
116 116
krt_set_notify(struct proto *x, net *net, rte *new, rte *old)
117 117
{
118
  if (x->state != PRS_UP)
119
    return;
118
  if (x->proto_state != PS_UP)
119
    bug("FIXME: krt_set_notify called for downed protocol");
120 120
  if (old)
121 121
    krt_remove_route(old);
122 122
  if (new)
......
124 124
}
125 125

  
126 126
void
127
krt_set_preconfig(struct krt_proto *x)
127
krt_set_start(struct krt_proto *x)
128 128
{
129 129
  if (if_scan_sock < 0)
130 130
    bug("krt set: missing socket");
131 131
  x->p.rt_notify = krt_set_notify;
132 132
}
133

  
134
void
135
krt_set_preconfig(struct krt_config *c)
136
{
137
}

Also available in: Unified diff