Fix build for non-INET that was broken by r264469.

MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2014-04-15 13:28:54 +00:00
parent 14b2dc3952
commit d092e11c6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264498

View file

@ -54,11 +54,11 @@ __FBSDID("$FreeBSD$");
#if defined(INET) || defined(INET6)
#include <netinet/in.h>
#include <netinet/ip.h>
#endif
#ifdef INET
#include <netinet/in_systm.h>
#include <netinet/if_ether.h>
#include <netinet/ip.h>
#endif
#ifdef INET6
@ -448,7 +448,11 @@ lagg_capabilities(struct lagg_softc *sc)
struct lagg_port *lp;
int cap = ~0, ena = ~0;
u_long hwa = ~0UL;
#if defined(INET) || defined(INET6)
u_int hw_tsomax = IP_MAXPACKET; /* Initialize to the maximum value. */
#else
u_int hw_tsomax = ~0; /* if_hw_tsomax is only for INET/INET6, but.. */
#endif
LAGG_WLOCK_ASSERT(sc);