summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-11-12 16:34:13 +0000
committermpi <mpi@openbsd.org>2015-11-12 16:34:13 +0000
commitef397f5a2df9ff5eedfb6b4221d6ba2c1d51b22f (patch)
treec53af2f5a33cfd1b3af5999b9b1cc85801f60357 /sys/netinet6
parentRemove xfree()'s prototype. tedu@ removed its definition a few weeks (diff)
downloadwireguard-openbsd-ef397f5a2df9ff5eedfb6b4221d6ba2c1d51b22f.tar.xz
wireguard-openbsd-ef397f5a2df9ff5eedfb6b4221d6ba2c1d51b22f.zip
Fix PIM build.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_mroute.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index 22be5890e39..4cd0cdb2940 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -103,13 +103,15 @@
#include <netinet/in.h>
#include <netinet/icmp6.h>
-
#include <netinet6/in6_var.h>
#include <netinet/ip6.h>
#include <netinet6/ip6_var.h>
#include <netinet6/ip6_mroute.h>
+
+#ifdef PIM
+#include <netinet/pim.h>
#include <netinet6/pim6_var.h>
-#include <netinet6/nd6.h>
+#endif
int ip6_mdq(struct mbuf *, struct ifnet *, struct mf6c *);
void phyint_send6(struct ip6_hdr *, struct mif6 *, struct mbuf *);
@@ -1899,7 +1901,7 @@ pim6_input(struct mbuf **mp, int *offp, int proto)
#endif
if_input_local(mif6table[reg_mif_num].m6_ifp, m,
- dst->sin6_family);
+ dst.sin6_family);
/* prepare the register head to send to the mrouting daemon */
m = mcp;