From 30aa02d70df2275d2289d9b736d879b9951bcaee Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 10 May 2000 13:05:39 +0000 Subject: rip_reconfigure done right --- proto/rip/rip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proto/rip/rip.c') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 17d0d5a..f69127d 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -868,10 +868,11 @@ static int rip_reconfigure(struct proto *p, struct proto_config *c) { struct rip_config *new = (struct rip_config *) c; + int generic = sizeof(struct proto_config) + sizeof(list); - return !memcmp(((byte *) P_CF) + sizeof(struct proto_config), - ((byte *) new) + sizeof(struct proto_config), - sizeof(struct rip_proto_config) - sizeof(struct proto_config)); + return !memcmp(((byte *) P_CF) + generic, + ((byte *) new) + generic, + sizeof(struct rip_proto_config) - generic); } struct protocol proto_rip = { -- cgit v1.2.3