Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2014 06:30:50 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270869 - head/sys/netinet
Message-ID:  <201408310630.s7V6UoK2044294@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408310630.s7V6UoK2044294>