Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2008 05:06:20 GMT
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 140065 for review
Message-ID:  <200804150506.m3F56KB1024518@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=140065

Change 140065 by julian@julian_trafmon1 on 2008/04/15 05:06:12

	Allow this to compile when IPV6 is not defined.

Affected files ...

.. //depot/projects/arp-v2/src/sys/net/if_llatbl.c#2 edit

Differences ...

==== //depot/projects/arp-v2/src/sys/net/if_llatbl.c#2 (text+ko) ====

@@ -280,7 +280,9 @@
 	struct lltable   *llt;
 	struct rtentry   *rt;
 	u_int hashkey;
+#ifdef INET6
 	char ip6buf[INET6_ADDRSTRLEN];
+#endif
 
 	KASSERT(ifp != NULL, ("%s: ifp is NULL", __func__));
 	KASSERT(l3addr != NULL, ("%s: L3 address is NULL", __func__));
@@ -340,10 +342,12 @@
 					log(LOG_INFO, "IPv4 address: \"%s\" is not on the network\n", \
 					    inet_ntoa(((struct sockaddr_in *)l3addr)->sin_addr));
 					break;
+#ifdef INET6
 				case AF_INET6:
 					log(LOG_INFO, "IPv6 address: \"%s\" is not on the network\n", \
 					    ip6_sprintf(ip6buf, &((struct sockaddr_in6 *)l3addr)->sin6_addr));
 					break;
+#endif
 
 				}
 				if (rt)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804150506.m3F56KB1024518>