diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-05-10 15:05:39 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-05-10 15:05:39 +0200 |
commit | 30aa02d70df2275d2289d9b736d879b9951bcaee (patch) | |
tree | 137d9d11aada41d405ba1fb40827450bbac22135 /proto/rip/rip.c | |
parent | b8524e9be4f1d15f4cd2cd365d7842eff8d5a499 (diff) | |
download | bird-30aa02d70df2275d2289d9b736d879b9951bcaee.tar bird-30aa02d70df2275d2289d9b736d879b9951bcaee.zip |
rip_reconfigure done right
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 = { |