summaryrefslogtreecommitdiffstats
path: root/sys/dev/cas/if_cas.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-08-30 19:55:54 +0000
committerglebius <glebius@FreeBSD.org>2014-08-30 19:55:54 +0000
commit9b93b159b3ea9f280f03355c9555fe9aae9622fb (patch)
tree10a1db7d40e40b24cd3293b6609aa460c86abb49 /sys/dev/cas/if_cas.c
parent33a1752aec9dcba5feb0388b71cccd219230df03 (diff)
downloadFreeBSD-src-9b93b159b3ea9f280f03355c9555fe9aae9622fb.zip
FreeBSD-src-9b93b159b3ea9f280f03355c9555fe9aae9622fb.tar.gz
Use define from if_var.h to access a field inside struct if_data,
that resides in struct ifnet. Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/dev/cas/if_cas.c')
-rw-r--r--sys/dev/cas/if_cas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cas/if_cas.c b/sys/dev/cas/if_cas.c
index 0c69880..4b4ea1f 100644
--- a/sys/dev/cas/if_cas.c
+++ b/sys/dev/cas/if_cas.c
@@ -423,7 +423,7 @@ cas_attach(struct cas_softc *sc)
/*
* Tell the upper layer(s) we support long frames/checksum offloads.
*/
- ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
+ ifp->if_hdrlen = sizeof(struct ether_vlan_header);
ifp->if_capabilities = IFCAP_VLAN_MTU;
if ((sc->sc_flags & CAS_NO_CSUM) == 0) {
ifp->if_capabilities |= IFCAP_HWCSUM;
OpenPOWER on IntegriCloud