-/* $OpenBSD: rde_attr.c,v 1.94 2015/08/30 23:20:43 deraadt Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.95 2015/10/24 08:00:42 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
{
u_int8_t *seg;
u_int16_t len, seg_size;
- u_int8_t i, seg_len, seg_type;
+ u_int8_t i, seg_len;
seg = aspath->data;
for (len = aspath->len; len > 0; len -= seg_size, seg += seg_size) {
- seg_type = seg[0];
seg_len = seg[1];
seg_size = 2 + sizeof(u_int32_t) * seg_len;
u_int32_t as, lastas = 0;
u_int count = 0;
u_int16_t len, seg_size;
- u_int8_t i, seg_type, seg_len;
+ u_int8_t i, seg_len;
if (type == ASLEN_MAX) {
if (aslen < aspath_count(a->data, a->len))
/* type == ASLEN_SEQ */
seg = a->data;
for (len = a->len; len > 0; len -= seg_size, seg += seg_size) {
- seg_type = seg[0];
seg_len = seg[1];
seg_size = 2 + sizeof(u_int32_t) * seg_len;
-/* $OpenBSD: util.c,v 1.19 2014/11/11 08:02:09 claudio Exp $ */
+/* $OpenBSD: util.c,v 1.20 2015/10/24 08:00:42 claudio Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
u_int8_t *seg;
int final;
u_int16_t seg_size;
- u_int8_t i, seg_type, seg_len;
+ u_int8_t i, seg_len;
if (type == AS_EMPTY) {
if (len == 0)
return (0);
}
- final = 0;
seg = data;
for (; len > 0; len -= seg_size, seg += seg_size) {
- seg_type = seg[0];
seg_len = seg[1];
seg_size = 2 + sizeof(u_int32_t) * seg_len;