-/* $OpenBSD: rde.h,v 1.268 2022/08/31 14:29:36 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.269 2022/09/01 13:19:11 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
RB_ENTRY(rde_aspath) entry;
struct attr **others;
struct aspath *aspath;
- uint64_t hash;
int refcnt;
uint32_t flags; /* internally used */
uint32_t med; /* multi exit disc */
struct attr *attr_optget(const struct rde_aspath *, uint8_t);
void attr_copy(struct rde_aspath *, const struct rde_aspath *);
int attr_compare(struct rde_aspath *, struct rde_aspath *);
-uint64_t attr_hash(struct rde_aspath *);
void attr_freeall(struct rde_aspath *);
void attr_free(struct rde_aspath *, struct attr *);
#define attr_optlen(x) \
-/* $OpenBSD: rde_attr.c,v 1.130 2022/08/31 14:29:36 claudio Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.131 2022/09/01 13:19:11 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include <siphash.h>
#include "bgpd.h"
#include "rde.h"
-/* $OpenBSD: rde_community.c,v 1.8 2022/08/29 16:44:47 claudio Exp $ */
+/* $OpenBSD: rde_community.c,v 1.9 2022/09/01 13:19:11 claudio Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include <siphash.h>
#include "bgpd.h"
#include "rde.h"
-/* $OpenBSD: rde_rib.c,v 1.247 2022/08/30 18:50:21 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.248 2022/09/01 13:19:11 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include <siphash.h>
#include <time.h>
#include "bgpd.h"
}
/*
- * Link this aspath into the global hash table.
+ * Link this aspath into the global table.
* The asp had to be alloced with path_get.
*/
static void
path_copy(struct rde_aspath *dst, const struct rde_aspath *src)
{
dst->aspath = aspath_copy(src->aspath);
- dst->hash = 0; /* not linked so no hash and no refcnt */
dst->refcnt = 0;
dst->flags = src->flags & ~F_ATTR_LINKED;
-/* $OpenBSD: rde_update.c,v 1.146 2022/08/17 15:15:26 claudio Exp $ */
+/* $OpenBSD: rde_update.c,v 1.147 2022/09/01 13:19:11 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include <siphash.h>
#include <stdio.h>
#include "bgpd.h"