summaryrefslogtreecommitdiff
path: root/regress/sys/net
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-11-03 21:50:59 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-11-03 21:50:59 +0000
commit64cf51ac22dc81bd108c4f7bbebcd209a66fd5c3 (patch)
treed8aa835ef9c6045a038b0de572e27272236d6bda /regress/sys/net
parent464340685be4ea9bb7196c7252a1805e8e3a091f (diff)
The 'source IP address' commit (route.c r1.249) broke the rtable regress
tests since it introduced use of ifa_ifwithaddr() from if.c, so the tests no longer link due to the missing symbol. Provide an ifa_ifwithaddr() shim that makes the test link again. Passes on amd64 and sparc64. ok bluhm
Diffstat (limited to 'regress/sys/net')
-rw-r--r--regress/sys/net/rtable/kern_compat.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h
index e7f105f4f53..f8399ce3602 100644
--- a/regress/sys/net/rtable/kern_compat.h
+++ b/regress/sys/net/rtable/kern_compat.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_compat.h,v 1.9 2019/05/08 14:59:31 bluhm Exp $ */
+/* $OpenBSD: kern_compat.h,v 1.10 2020/11/03 21:50:58 tb Exp $ */
#ifndef _KERN_COMPAT_H_
#define _KERN_COMPAT_H_
@@ -82,4 +82,12 @@ struct rtentry;
int rt_hash(struct rtentry *, struct sockaddr *, uint32_t *);
+struct ifaddr;
+
+__unused static inline struct ifaddr *
+ifa_ifwithaddr(struct sockaddr *addr, u_int rtableid)
+{
+ return NULL;
+}
+
#endif /* _KERN_COMPAT_H_ */