svn commit: r270869 - head/sys/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Sun Aug 31 06:30:51 UTC 2014
Author: glebius
Date: Sun Aug 31 06:30:50 2014
New Revision: 270869
URL: http://svnweb.freebsd.org/changeset/base/270869
Log:
Use macros instead of referencing struct if_data that resides in ifnet.
Sponsored by: Nginx, Inc.
Modified:
head/sys/netinet/if_ether.c
Modified: head/sys/netinet/if_ether.c
==============================================================================
--- head/sys/netinet/if_ether.c Sun Aug 31 06:23:54 2014 (r270868)
+++ head/sys/netinet/if_ether.c Sun Aug 31 06:30:50 2014 (r270869)
@@ -258,8 +258,8 @@ arprequest(struct ifnet *ifp, const stru
if ((m = m_gethdr(M_NOWAIT, MT_DATA)) == NULL)
return;
- m->m_len = sizeof(*ah) + 2*sizeof(struct in_addr) +
- 2*ifp->if_data.ifi_addrlen;
+ m->m_len = sizeof(*ah) + 2 * sizeof(struct in_addr) +
+ 2 * ifp->if_addrlen;
m->m_pkthdr.len = m->m_len;
MH_ALIGN(m, m->m_len);
ah = mtod(m, struct arphdr *);
More information about the svn-src-head
mailing list