-/* $OpenBSD: kern_compat.h,v 1.15 2023/07/07 20:38:17 bluhm Exp $ */
+/* $OpenBSD: kern_compat.h,v 1.16 2023/11/11 07:34:54 anton Exp $ */
#ifndef _KERN_COMPAT_H_
#define _KERN_COMPAT_H_
struct rtentry;
-int rt_hash(struct rtentry *, struct sockaddr *, uint32_t *);
+int rt_hash(struct rtentry *, const struct sockaddr *, uint32_t *);
#endif /* _KERN_COMPAT_H_ */
-/* $OpenBSD: util.c,v 1.13 2023/07/07 20:38:17 bluhm Exp $ */
+/* $OpenBSD: util.c,v 1.14 2023/11/11 07:34:54 anton Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
} while (0)
int
-rt_hash(struct rtentry *rt, struct sockaddr *dst, uint32_t *src)
+rt_hash(struct rtentry *rt, const struct sockaddr *dst, uint32_t *src)
{
uint32_t a, b, c;