From 85368cd4b7244535f6ce56a27f6d22ddfa2bf4e6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 2 May 2000 16:07:41 +0000 Subject: Full protocol tracing. --- proto/bgp/attrs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proto/bgp/attrs.c') diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index ee06298..40130c6 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 @@ -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; icount; 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); } } -- cgit v1.2.3