-/* $OpenBSD: eigrpd.h,v 1.26 2021/01/19 10:53:25 claudio Exp $ */
+/* $OpenBSD: eigrpd.h,v 1.27 2021/11/03 13:48:46 deraadt Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
};
RB_PROTOTYPE(iface_id_head, eigrp_iface, id_tree, iface_id_compare)
-#define INADDRSZ 4
-#define IN6ADDRSZ 16
-
struct seq_addr_entry {
TAILQ_ENTRY(seq_addr_entry) entry;
int af;
-/* $OpenBSD: tlv.c,v 1.15 2016/10/10 02:26:24 gsoares Exp $ */
+/* $OpenBSD: tlv.c,v 1.16 2021/11/03 13:48:46 deraadt Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
TAILQ_FOREACH(sa, seq_addr_list, entry) {
switch (sa->af) {
case AF_INET:
- alen = INADDRSZ;
+ alen = sizeof (struct in_addr);
break;
case AF_INET6:
- alen = IN6ADDRSZ;
+ alen = sizeof(struct in6_addr);
break;
default:
fatalx("gen_sequence_tlv: unknown address family");
switch (af) {
case AF_INET:
- if (alen != INADDRSZ) {
+ if (alen != sizeof (struct in_addr)) {
log_debug("%s: invalid address length",
__func__);
return (-1);
}
break;
case AF_INET6:
- if (alen != IN6ADDRSZ) {
+ if (alen != sizeof (struct in6_addr)) {
log_debug("%s: invalid address length",
__func__);
return (-1);