Revision f7fcb752

View differences:

sysdep/linux/netlink/krt-iface.h
23 23
static inline void krt_if_shutdown(struct kif_proto *p) { };
24 24
static inline void krt_if_io_init(void) { };
25 25

  
26
static inline int kif_params_same(struct krt_if_params *old, struct krt_if_params *new) { return 1; }
27

  
26 28
#endif
sysdep/unix/krt-iface.h
1 1
/*
2 2
 *	BIRD -- Unix Kernel Interface Syncer
3 3
 *
4
 *	(c) 1998--1999 Martin Mares <mj@ucw.cz>
4
 *	(c) 1998--2000 Martin Mares <mj@ucw.cz>
5 5
 *
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 */
......
17 17

  
18 18
extern int if_scan_sock;
19 19

  
20
static inline int kif_params_same(struct krt_if_params *old, struct krt_if_params *new) { return 1; }
21

  
20 22
#endif
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