}
void
-krt_set_notify(struct krt_proto *p, net *net, rte *new, rte *old)
+krt_set_notify(struct krt_proto *p UNUSED, net *net UNUSED, rte *new, rte *old)
{
if (old)
{
}
void
-krt_set_start(struct krt_proto *x, int first)
+krt_set_start(struct krt_proto *x, int first UNUSED)
{
sock *sk_rt;
static int ks_open_tried = 0;
}
static int
-krt_set_hook(sock *sk, int size)
+krt_set_hook(sock *sk, int size UNUSED)
{
struct ks_msg msg;
int l = read(sk->fd, (char *)&msg, sizeof(msg));
}
void
-krt_scan_construct(struct krt_config *c)
+krt_scan_construct(struct krt_config *c UNUSED)
{
}
void
-krt_scan_preconfig(struct config *c)
+krt_scan_preconfig(struct config *c UNUSED)
{
}
void
-krt_scan_postconfig(struct krt_config *c)
+krt_scan_postconfig(struct krt_config *c UNUSED)
{
}
void
-krt_scan_start(struct krt_proto *x, int first)
+krt_scan_start(struct krt_proto *x, int first UNUSED)
{
init_list(&x->scan.temp_ifs);
}
void
-krt_scan_shutdown(struct krt_proto *x, int last)
+krt_scan_shutdown(struct krt_proto *x UNUSED, int last UNUSED)
{
}
void
-krt_set_construct(struct krt_config *c)
+krt_set_construct(struct krt_config *c UNUSED)
{
}
void
-krt_set_shutdown(struct krt_proto *x, int last)
+krt_set_shutdown(struct krt_proto *x UNUSED, int last UNUSED)
{
}
}
void
-krt_if_construct(struct kif_config *c)
+krt_if_construct(struct kif_config *c UNUSED)
{
}
void
-krt_if_start(struct kif_proto *p)
+krt_if_start(struct kif_proto *p UNUSED)
{
}
void
-krt_if_shutdown(struct kif_proto *p)
+krt_if_shutdown(struct kif_proto *p UNUSED)
{
}
};
static int krt_set_hook(sock *sk, int size);
-static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
+static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
void krt_read_msg(struct proto *p, struct ks_msg *msg, int scan);
#endif
{
rte *old;
net *net = e->net;
- int src = e->u.krt.src;
int verdict;
+#ifdef KRT_ALLOW_LEARN
+ int src = e->u.krt.src;
+#endif
#ifdef CONFIG_AUTO_ROUTES
if (e->attrs->dest == RTD_DEVICE)
}
void
-krt_got_route_async(struct krt_proto *p, rte *e, int new)
+krt_got_route_async(struct krt_proto *p, rte *e, int new
+#ifndef KRT_ALLOW_LEARN
+UNUSED
+#endif
+)
{
net *net = e->net;
int src = e->u.krt.src;