Revision f7fcb752 sysdep/unix/krt.c

View differences:

sysdep/unix/krt.c
140 140
  return PS_DOWN;
141 141
}
142 142

  
143
static int
144
kif_reconfigure(struct proto *p, struct proto_config *new)
145
{
146
  struct kif_config *o = (struct kif_config *) p->cf;
147
  struct kif_config *n = (struct kif_config *) new;
148

  
149
  if (!kif_params_same(&o->iface, &n->iface))
150
    return 0;
151
  if (o->scan_time != n->scan_time)
152
    {
153
      tm_stop(kif_scan_timer);
154
      kif_scan_timer->recurrent = n->scan_time;
155
      kif_scan(kif_scan_timer);
156
      tm_start(kif_scan_timer, n->scan_time);
157
    }
158
  return 1;
159
}
160

  
143 161
struct protocol proto_unix_iface = {
144 162
  name:		"Device",
145 163
  priority:	100,
......
147 165
  init:		kif_init,
148 166
  start:	kif_start,
149 167
  shutdown:	kif_shutdown,
168
  reconfigure:	kif_reconfigure,
150 169
};
151 170

  
152 171
/*

Also available in: Unified diff