diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-03-30 12:11:19 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-03-30 12:11:19 +0000 |
commit | 56baa9375029bdfeb1410110ba25aba056dbc83c (patch) | |
tree | 5a2ef7160664e7b249c11dccef4898fa163567dd /usr.sbin/bgpd/rde.h | |
parent | 2bf0c318f84a2d9ff260ef6b1c92d227cd713ee7 (diff) |
Put the size of the pt_entry object into the struct itself.
Increase the refcnt to a 32bit int and while there reorder the vpn
specific structs a bit so the IPv4 and IPv6 types are more equal.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r-- | usr.sbin/bgpd/rde.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index cd33d5f2b1b..8999272df78 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.289 2023/03/29 10:46:11 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.290 2023/03/30 12:11:18 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and @@ -265,7 +265,8 @@ struct pt_entry { RB_ENTRY(pt_entry) pt_e; uint8_t aid; uint8_t prefixlen; - uint16_t refcnt; + uint16_t len; + uint32_t refcnt; uint8_t data[4]; /* data depending on aid */ }; |