summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/if_fwe.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/firewire/if_fwe.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/firewire/if_fwe.c')
-rw-r--r--sys/dev/firewire/if_fwe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c
index cb21cf6..5797cc7 100644
--- a/sys/dev/firewire/if_fwe.c
+++ b/sys/dev/firewire/if_fwe.c
@@ -223,7 +223,7 @@ fwe_attach(device_t dev)
splx(s);
/* Tell the upper layer(s) we support long frames. */
- ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
+ ifp->if_hdrlen = sizeof(struct ether_vlan_header);
#if defined(__FreeBSD__) && __FreeBSD_version >= 500000
ifp->if_capabilities |= IFCAP_VLAN_MTU | IFCAP_POLLING;
ifp->if_capenable |= IFCAP_VLAN_MTU;
OpenPOWER on IntegriCloud