From 9b93b159b3ea9f280f03355c9555fe9aae9622fb Mon Sep 17 00:00:00 2001 From: glebius Date: Sat, 30 Aug 2014 19:55:54 +0000 Subject: Use define from if_var.h to access a field inside struct if_data, that resides in struct ifnet. Sponsored by: Nginx, Inc. --- sys/dev/firewire/if_fwe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/firewire/if_fwe.c') 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; -- cgit v1.1