From 88dc89f9918f524d9ca143d409c261a4a8230555 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 17 Jan 2000 00:20:17 +0000 Subject: Device protocol supports reconfiguration. --- nest/rt-dev.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nest/rt-dev.c') diff --git a/nest/rt-dev.c b/nest/rt-dev.c index d73e376..23d9b56 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -77,8 +77,18 @@ dev_init(struct proto_config *c) return p; } +static int +dev_reconfigure(struct proto *p, struct proto_config *new) +{ + struct rt_dev_config *o = (struct rt_dev_config *) p->cf; + struct rt_dev_config *n = (struct rt_dev_config *) new; + + return iface_patts_equal(&o->iface_list, &n->iface_list, NULL); +} + struct protocol proto_device = { name: "Direct", priority: 90, init: dev_init, + reconfigure: dev_reconfigure }; -- cgit v1.2.3