accordance with all other 'art_root' structure members.
Proposed by bluhm@
ok bluhm@ kn@
-/* $OpenBSD: art.h,v 1.21 2021/03/02 17:50:41 deraadt Exp $ */
+/* $OpenBSD: art.h,v 1.22 2023/04/18 10:19:16 mvs Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
uint8_t ar_nlvl; /* [I] Number of levels */
uint8_t ar_alen; /* [I] Address length in bits */
uint8_t ar_off; /* [I] Offset of key in bytes */
- struct sockaddr *source; /* [K] optional src addr to use */
+ struct sockaddr *ar_source; /* [K] optional src addr to use */
};
#define ISLEAF(e) (((unsigned long)(e) & 1) == 0)
-/* $OpenBSD: rtable.c,v 1.80 2022/06/29 22:20:47 bluhm Exp $ */
+/* $OpenBSD: rtable.c,v 1.81 2023/04/18 10:19:16 mvs Exp $ */
/*
* Copyright (c) 2014-2016 Martin Pieuchot
if ((ar = rtable_get(rtableid, af)) == NULL)
return (EAFNOSUPPORT);
- ar->source = src;
+ ar->ar_source = src;
return (0);
}
if (ar == NULL)
return (NULL);
- return (ar->source);
+ return (ar->ar_source);
}
void