svn commit: r360921 - head/sys/netinet
Alexander V. Chernikov
melifaro at FreeBSD.org
Mon May 11 20:41:04 UTC 2020
Author: melifaro
Date: Mon May 11 20:41:03 2020
New Revision: 360921
URL: https://svnweb.freebsd.org/changeset/base/360921
Log:
Fix NOINET[6] build by using af-independent route lookup function.
Reported by: rpokala
Modified:
head/sys/netinet/sctp_os_bsd.h
Modified: head/sys/netinet/sctp_os_bsd.h
==============================================================================
--- head/sys/netinet/sctp_os_bsd.h Mon May 11 20:40:30 2020 (r360920)
+++ head/sys/netinet/sctp_os_bsd.h Mon May 11 20:41:03 2020 (r360921)
@@ -402,10 +402,7 @@ typedef struct route sctp_route_t;
#define SCTP_RTALLOC(ro, vrf_id, fibnum) \
{ \
if ((ro)->ro_nh == NULL) { \
- if ((ro)->ro_dst.sa_family == AF_INET) \
- (ro)->ro_nh = fib4_lookup(fibnum, ((struct sockaddr_in *)&(ro)->ro_dst)->sin_addr, 0, NHR_REF, 0); \
- if ((ro)->ro_dst.sa_family == AF_INET6) \
- (ro)->ro_nh = fib6_lookup(fibnum, &((struct sockaddr_in6 *)&(ro)->ro_dst)->sin6_addr, 0, NHR_REF, 0); \
+ (ro)->ro_nh = rib_lookup(fibnum, &(ro)->ro_dst, NHR_REF, 0); \
} \
}
More information about the svn-src-head
mailing list