diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-02 16:07:41 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-02 16:07:41 +0000 |
commit | 85368cd4b7244535f6ce56a27f6d22ddfa2bf4e6 (patch) | |
tree | db9b8baef6c68e36c2c6d34b24f8145386328bea /proto/bgp/attrs.c | |
parent | 85a291ff3055f0b10ffc199138c67305f5b3fc98 (diff) |
Full protocol tracing.
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r-- | proto/bgp/attrs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index ee06298d..40130c63 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -6,7 +6,7 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ -#define LOCAL_DEBUG +#undef LOCAL_DEBUG #include <stdlib.h> @@ -280,14 +280,14 @@ bgp_new_bucket(struct bgp_proto *p, ea_list *new, unsigned hash) /* Copy values of non-inline attributes */ for (i=0; i<new->count; i++) { - eattr *a = &new->attrs[i]; + eattr *a = &b->eattrs->attrs[i]; if (!(a->type & EAF_EMBEDDED)) { struct adata *oa = a->u.ptr; struct adata *na = (struct adata *) dest; memcpy(na, oa, sizeof(struct adata) + oa->length); a->u.ptr = na; - dest += ALIGN(na->length, CPU_STRUCT_ALIGN); + dest += ALIGN(sizeof(struct adata) + na->length, CPU_STRUCT_ALIGN); } } |