Author: jhb
Date: Tue Jun 4 20:40:16 2013
New Revision: 251393
URL: http://svnweb.freebsd.org/changeset/base/251393
Log:
Fix build with both INET and INET6 disabled.
Modified:
head/sys/net/if.c
Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c Tue Jun 4 19:47:26 2013 (r251392)
+++ head/sys/net/if.c Tue Jun 4 20:40:16 2013 (r251393)
@@ -654,12 +654,14 @@ if_attach_internal(struct ifnet *ifp, in
/* Reliably crash if used uninitialized. */
ifp->if_broadcastaddr = NULL;
+#if defined(INET) || defined(INET6)
/* Initialize to max value. */
if (ifp->if_hw_tsomax == 0)
ifp->if_hw_tsomax = IP_MAXPACKET;
KASSERT(ifp->if_hw_tsomax <= IP_MAXPACKET &&
ifp->if_hw_tsomax >= IP_MAXPACKET / 8,
("%s: tsomax outside of range", __func__));
+#endif
}
#ifdef VIMAGE
else {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"