diff options
author | jhb <jhb@FreeBSD.org> | 2013-06-04 20:40:16 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-06-04 20:40:16 +0000 |
commit | 058cacb0224235da6e2a9fb150ef9ccc437730f9 (patch) | |
tree | 528940cce65461ae9b978979c326a82202481583 /sys/net | |
parent | 26032149e764765151d7db649af11e5ec34eda81 (diff) | |
download | FreeBSD-src-058cacb0224235da6e2a9fb150ef9ccc437730f9.zip FreeBSD-src-058cacb0224235da6e2a9fb150ef9ccc437730f9.tar.gz |
Fix build with both INET and INET6 disabled.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 3fd6efb..326860d 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -654,12 +654,14 @@ if_attach_internal(struct ifnet *ifp, int vmove) /* 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 { |