PERFORCE change 140065 for review
    Julian Elischer 
    julian at FreeBSD.org
       
    Tue Apr 15 05:06:21 UTC 2008
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=140065
Change 140065 by julian at 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)
    
    
More information about the p4-projects
mailing list